Skip to content

Commit a8d68b6

Browse files
committed
add neg test for issue scala#18448
1 parent 2616c8b commit a8d68b6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/neg/i18448/UBMatch_1.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
type <:![T <: UB, UB] <: UB = T match
2+
case UB => T

tests/neg/i18448/UBMatch_2.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trait Foo
2+
type Of[T] <: Foo = T match
3+
case Foo => T <:! Foo

0 commit comments

Comments
 (0)