Skip to content

Commit

Permalink
add neg test for issue scala#18448
Browse files Browse the repository at this point in the history
  • Loading branch information
soronpo committed Aug 25, 2023
1 parent 2616c8b commit a8d68b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/neg/i18448/UBMatch_1.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
type <:![T <: UB, UB] <: UB = T match
case UB => T
3 changes: 3 additions & 0 deletions tests/neg/i18448/UBMatch_2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trait Foo
type Of[T] <: Foo = T match
case Foo => T <:! Foo

0 comments on commit a8d68b6

Please sign in to comment.