summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-13 09:52:58 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-13 09:52:58 -0700
commit8cfba0fb219a49cceeb0318a6562aa3a602d913c (patch)
tree047a07c92c681fcb471b02931080ecb861aa330e /test
parent1f116e25bc53b6af81e87f7756e2a149fd10ca1d (diff)
parent21fcf64c8197b481325c3765b897f7159817875c (diff)
downloadscala-8cfba0fb219a49cceeb0318a6562aa3a602d913c.tar.gz
scala-8cfba0fb219a49cceeb0318a6562aa3a602d913c.tar.bz2
scala-8cfba0fb219a49cceeb0318a6562aa3a602d913c.zip
Merge pull request #1125 from hubertp/2.10.x-issue/6214
Fixes SI-6214.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t6214.check4
-rw-r--r--test/files/neg/t6214.scala7
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t6214.check b/test/files/neg/t6214.check
new file mode 100644
index 0000000000..6349a3e71c
--- /dev/null
+++ b/test/files/neg/t6214.check
@@ -0,0 +1,4 @@
+t6214.scala:5: error: missing parameter type
+ m { s => case class Foo() }
+ ^
+one error found
diff --git a/test/files/neg/t6214.scala b/test/files/neg/t6214.scala
new file mode 100644
index 0000000000..734acda35e
--- /dev/null
+++ b/test/files/neg/t6214.scala
@@ -0,0 +1,7 @@
+object Test {
+ def m(f: String => Unit) = 0
+ def m(f: Int => Unit) = 0
+ def foo {
+ m { s => case class Foo() }
+ }
+}