From 2d3c79f7cf3e79b592c7e479d262e8d3f9b04959 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 6 May 2014 10:34:40 +0200 Subject: Tests pos 20xx 21xx --- tests/pos/t2168.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pos/t2168.scala (limited to 'tests/pos/t2168.scala') diff --git a/tests/pos/t2168.scala b/tests/pos/t2168.scala new file mode 100644 index 000000000..21afb239a --- /dev/null +++ b/tests/pos/t2168.scala @@ -0,0 +1,4 @@ +object Test extends App { + def foo1(x: AnyRef) = x match { case x: Function0[_] => x() } + def foo2(x: AnyRef) = x match { case x: Function0[Any] => x() } +} -- cgit v1.2.3