Skip to content

Commit 5a6542b

Browse files
committed
Update test
1 parent 61c6d4d commit 5a6542b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/neg-custom-args/fatal-warnings/opaque-match.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ case class C()
33
object O:
44
opaque type T <: C = C
55
val x: T = C()
6+
(??? : Any) match
7+
case _: T => ??? // OK
68

79
def Test[T] =
810
O.x match
@@ -14,6 +16,8 @@ def Test[T] =
1416

1517
(??? : Any) match
1618
case _: List[O.T] => ??? // error
19+
(??? : Any) match
20+
case _: List[O.T @unchecked] => ??? // OK
1721
(??? : Any) match
1822
case _: List[T] => ??? // error
1923

0 commit comments

Comments
 (0)