summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-19 04:08:02 +0000
committerPaul Phillips <paulp@improving.org>2010-05-19 04:08:02 +0000
commit4d11985231229984fd207dcd633d070ff24c97fb (patch)
treed06625b2a121595281d5b7818ea2f7bb5976a3cf /test
parentebfcab7b96e95939e3f258f27e936844e343326a (diff)
downloadscala-4d11985231229984fd207dcd633d070ff24c97fb.tar.gz
scala-4d11985231229984fd207dcd633d070ff24c97fb.tar.bz2
scala-4d11985231229984fd207dcd633d070ff24c97fb.zip
Hacky but no-risk fix for #3189, which was caus...
Hacky but no-risk fix for #3189, which was caused by the ghost of regular expression patterns rising from the grave to haunt the parser. No review.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/bug3189.check7
-rw-r--r--test/files/neg/bug3189.scala3
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/bug3189.check b/test/files/neg/bug3189.check
new file mode 100644
index 0000000000..520644fd43
--- /dev/null
+++ b/test/files/neg/bug3189.check
@@ -0,0 +1,7 @@
+bug3189.scala:2: error: illegal start of simple pattern
+ val Array(a,b*) = ("": Any)
+ ^
+bug3189.scala:3: error: ')' expected but '}' found.
+}
+^
+two errors found
diff --git a/test/files/neg/bug3189.scala b/test/files/neg/bug3189.scala
new file mode 100644
index 0000000000..4ea4bb7581
--- /dev/null
+++ b/test/files/neg/bug3189.scala
@@ -0,0 +1,3 @@
+object A {
+ val Array(a,b*) = ("": Any)
+} \ No newline at end of file