diff options
Diffstat (limited to 'tests/pos/t8023.scala')
-rw-r--r-- | tests/pos/t8023.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/t8023.scala b/tests/pos/t8023.scala new file mode 100644 index 000000000..66d478abd --- /dev/null +++ b/tests/pos/t8023.scala @@ -0,0 +1,9 @@ +class C[K] +class D[K] + +object Test3 { + def foo = (null: Any) match { + case a: C[k] => new C[k]() // this one worked before as the info of `A` was complete + // () + } +} |