summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-20 16:30:59 +0000
committerPaul Phillips <paulp@improving.org>2010-05-20 16:30:59 +0000
commit136f08e7db582060142c9ac796ba0b71df74139f (patch)
tree0cba76b29d9e24c7a683d13d5efee65a25a1f565 /test
parentdba07aa5a45ba53ecfeef8e42b8b4362b0fecd83 (diff)
downloadscala-136f08e7db582060142c9ac796ba0b71df74139f.tar.gz
scala-136f08e7db582060142c9ac796ba0b71df74139f.tar.bz2
scala-136f08e7db582060142c9ac796ba0b71df74139f.zip
Misoptimization for list extractors caused non-...
Misoptimization for list extractors caused non-sequences to incorrectly match. Closes #3050, #2800. No review.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/bug3050.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/bug3050.scala b/test/files/run/bug3050.scala
new file mode 100644
index 0000000000..aaec99ec14
--- /dev/null
+++ b/test/files/run/bug3050.scala
@@ -0,0 +1,9 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val x =
+ try { ("": Any) match { case List(_*) => true } }
+ catch { case _ => false }
+
+ assert(x == false)
+ }
+}