summaryrefslogtreecommitdiff
path: root/test/pending/run/virtpatmat_anonfun_underscore.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/virtpatmat_anonfun_underscore.scala')
-rw-r--r--test/pending/run/virtpatmat_anonfun_underscore.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pending/run/virtpatmat_anonfun_underscore.scala b/test/pending/run/virtpatmat_anonfun_underscore.scala
new file mode 100644
index 0000000000..db6705d025
--- /dev/null
+++ b/test/pending/run/virtpatmat_anonfun_underscore.scala
@@ -0,0 +1,4 @@
+object Test extends App {
+ List(1,2,3) map (_ match { case x => x + 1} ) // `_ match` is redundant but shouldn't crash the compiler
+ List((1,2)) map (_ match { case (x, z) => x + z})
+} \ No newline at end of file