summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/bug1878.check5
-rw-r--r--test/files/neg/bug1878.scala5
2 files changed, 9 insertions, 1 deletions
diff --git a/test/files/neg/bug1878.check b/test/files/neg/bug1878.check
index 7b25a909a2..5484d675af 100644
--- a/test/files/neg/bug1878.check
+++ b/test/files/neg/bug1878.check
@@ -4,4 +4,7 @@ bug1878.scala:3: error: _* may only come last
bug1878.scala:9: error: _* may only come last
val List(List(_*, arg2), _) = List(List(1,2,3), List(4,5,6))
^
-two errors found
+bug1878.scala:13: error: _* may only come last
+ case <p> { _* } </p> =>
+ ^
+three errors found
diff --git a/test/files/neg/bug1878.scala b/test/files/neg/bug1878.scala
index ca76df082b..da22f2a4ea 100644
--- a/test/files/neg/bug1878.scala
+++ b/test/files/neg/bug1878.scala
@@ -7,4 +7,9 @@ object Test extends Application {
// illegal
val List(List(_*, arg2), _) = List(List(1,2,3), List(4,5,6))
+
+ // illegal - bug #1764
+ null match {
+ case <p> { _* } </p> =>
+ }
} \ No newline at end of file