summaryrefslogtreecommitdiff
path: root/test/files/neg/type-diagnostics.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/type-diagnostics.check')
-rw-r--r--test/files/neg/type-diagnostics.check6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/files/neg/type-diagnostics.check b/test/files/neg/type-diagnostics.check
index 33e07f3816..62d580a788 100644
--- a/test/files/neg/type-diagnostics.check
+++ b/test/files/neg/type-diagnostics.check
@@ -13,4 +13,8 @@ type-diagnostics.scala:17: error: type mismatch;
required: java.lang.String
def f2[String](s: String) = strings(List(s))
^
-three errors found
+type-diagnostics.scala:21: error: missing parameter type for expanded function
+(see SLS 8.5, "Pattern Matching Anonymous Functions")
+ val f = { case 5 => 10 }
+ ^
+four errors found