diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-30 09:53:58 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-30 09:53:58 +0100 |
commit | f0e54c59520566b8d9d2b4dae8a4802de6b3a843 (patch) | |
tree | 92249fbd25a6cd76de690490bb114ac61b6c0fd1 /tests | |
parent | 201ce2f1d11bf3940291f6c800ec9dedead6c2a5 (diff) | |
download | dotty-f0e54c59520566b8d9d2b4dae8a4802de6b3a843.tar.gz dotty-f0e54c59520566b8d9d2b4dae8a4802de6b3a843.tar.bz2 dotty-f0e54c59520566b8d9d2b4dae8a4802de6b3a843.zip |
Allow pattern matching anonymous functions of arity > 1
This is sepcified in Sec. 8.5 of the SLS. Fixes #873. Review by @smarter.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/i873.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pos/i873.scala b/tests/pos/i873.scala new file mode 100644 index 000000000..71c8a3959 --- /dev/null +++ b/tests/pos/i873.scala @@ -0,0 +1,4 @@ +object Test { + def call(k: (Int, Int) => Unit): Unit = ??? + def test = call({ case (x, y) => ()}) +} |