summaryrefslogtreecommitdiff
path: root/test/files/pos/bug2168.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-07-20 21:38:13 +0000
committerPaul Phillips <paulp@improving.org>2009-07-20 21:38:13 +0000
commit04ed00053ec03848f3409e090d818418c19a8541 (patch)
tree7123e1cab2042b306a81d83c7a97ea8e6e884503 /test/files/pos/bug2168.scala
parent9fcf6dc3c6b32e03c64d340e285e1d7886593d20 (diff)
downloadscala-04ed00053ec03848f3409e090d818418c19a8541.tar.gz
scala-04ed00053ec03848f3409e090d818418c19a8541.tar.bz2
scala-04ed00053ec03848f3409e090d818418c19a8541.zip
Fix and test case for #2168.
Diffstat (limited to 'test/files/pos/bug2168.scala')
-rw-r--r--test/files/pos/bug2168.scala5
1 files changed, 5 insertions, 0 deletions
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() }
+}
+