From 81440d55eea6309dd7e2101f5467dfce20a46a9a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 30 Aug 2009 02:57:16 +0000 Subject: Test case for #1560, which was fixed sometime in the last few weeks. --- test/files/pos/bug1560.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/bug1560.scala (limited to 'test/files') 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 -- cgit v1.2.3