Skip to content

Commit 77bd0cc

Browse files
committed
Add test
1 parent d61eb85 commit 77bd0cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Test {
2+
trait A[+T]
3+
class B[T] extends A[T]
4+
5+
class C
6+
class D extends C
7+
8+
def quux(a: A[C]): Unit = a match {
9+
case _: B[C] => // error!!
10+
}
11+
12+
quux(new B[D])
13+
}

0 commit comments

Comments
 (0)