summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-07-18 18:10:30 +0000
committerPaul Phillips <paulp@improving.org>2009-07-18 18:10:30 +0000
commitfd1c68f004f9cec9fc2aef430b0d28e845207987 (patch)
tree92f42f71f90ff687234a538650fad0df8fbfbc1c /test/files/neg
parentb70cf1f40b36ec686c68f514579d71a44d09a0a3 (diff)
downloadscala-fd1c68f004f9cec9fc2aef430b0d28e845207987.tar.gz
scala-fd1c68f004f9cec9fc2aef430b0d28e845207987.tar.bz2
scala-fd1c68f004f9cec9fc2aef430b0d28e845207987.zip
Added test case for #1764 to the test case for ...
Added test case for #1764 to the test case for #1878 (as #1764 was fixed along with it in r18343.)
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