summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-30 02:57:16 +0000
committerPaul Phillips <paulp@improving.org>2009-08-30 02:57:16 +0000
commit81440d55eea6309dd7e2101f5467dfce20a46a9a (patch)
treeaad77ad9e6fefa1971819fa99a97222e70726364 /test/files
parentf44eb67634a0bc511c25c5d71b4fb63b98740639 (diff)
downloadscala-81440d55eea6309dd7e2101f5467dfce20a46a9a.tar.gz
scala-81440d55eea6309dd7e2101f5467dfce20a46a9a.tar.bz2
scala-81440d55eea6309dd7e2101f5467dfce20a46a9a.zip
Test case for #1560, which was fixed sometime in
the last few weeks.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/bug1560.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/bug1560.scala b/test/files/pos/bug1560.scala
new file mode 100644
index 0000000000..700252328f
--- /dev/null
+++ b/test/files/pos/bug1560.scala
@@ -0,0 +1,11 @@
+object Test extends Application {
+ trait C[T] {
+ def t: T
+ }
+
+ def b: Option[C[_]] = null
+
+ def c = b match {
+ case Some(b) => b.t
+ }
+} \ No newline at end of file