Skip to content

Commit

Permalink
Add regression test for scala#10667
Browse files Browse the repository at this point in the history
  • Loading branch information
griggt committed Feb 24, 2021
1 parent 9373ce6 commit 21ad966
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/pos/i10667.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sealed trait A

enum Nums {
case One
case Two extends Nums with A
case Three
}

object Test {
val list = List[Nums & A](Nums.Two)

list.map {
case Nums.Two => ()
}
}

0 comments on commit 21ad966

Please sign in to comment.