aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-scala2
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos-scala2')
-rw-r--r--tests/pos-scala2/t3050.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos-scala2/t3050.scala b/tests/pos-scala2/t3050.scala
new file mode 100644
index 000000000..160f8b664
--- /dev/null
+++ b/tests/pos-scala2/t3050.scala
@@ -0,0 +1,9 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val x =
+ try { ("": Any) match { case List(_*) => true } }
+ catch { case _: Throwable => false }
+
+ assert(!x)
+ }
+}