diff options
Diffstat (limited to 'tests/pos/t2168.scala')
-rw-r--r-- | tests/pos/t2168.scala | 4 |
1 files changed, 4 insertions, 0 deletions
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() } +} |