diff options
Diffstat (limited to 'tests/neg/i1640.scala')
-rw-r--r-- | tests/neg/i1640.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/neg/i1640.scala b/tests/neg/i1640.scala new file mode 100644 index 000000000..78351a1d6 --- /dev/null +++ b/tests/neg/i1640.scala @@ -0,0 +1,4 @@ +object Test extends App { + List(1, 2, 3) map (_ match { case x => x + 1 }) + List((1, 2)) x (_ match { case (x, z) => x + z }) // error +} |