Skip to content

Commit daf2260

Browse files
committed
add test case
1 parent 974a7c1 commit daf2260

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Test {
2+
val x: Any = ???
3+
4+
x match {
5+
case _: List[Int @unchecked] => 5
6+
}
7+
8+
def foo(x: Any): Boolean =
9+
x.isInstanceOf[List[String]] // error
10+
}

0 commit comments

Comments
 (0)