From f0e54c59520566b8d9d2b4dae8a4802de6b3a843 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 30 Oct 2015 09:53:58 +0100 Subject: Allow pattern matching anonymous functions of arity > 1 This is sepcified in Sec. 8.5 of the SLS. Fixes #873. Review by @smarter. --- tests/pos/i873.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pos/i873.scala (limited to 'tests/pos/i873.scala') 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) => ()}) +} -- cgit v1.2.3