From 04ed00053ec03848f3409e090d818418c19a8541 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 20 Jul 2009 21:38:13 +0000 Subject: Fix and test case for #2168. --- test/files/pos/bug2168.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/pos/bug2168.scala (limited to 'test') diff --git a/test/files/pos/bug2168.scala b/test/files/pos/bug2168.scala new file mode 100644 index 0000000000..42224236db --- /dev/null +++ b/test/files/pos/bug2168.scala @@ -0,0 +1,5 @@ +object Test extends Application { + 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