Skip to content

Commit

Permalink
Fix #11973: Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierBlanvillain committed Jun 9, 2021
1 parent c7b89e7 commit 393bd28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/11973.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
enum E:
case C

trait T

def f(x: E | T): Unit = x match {
case e: E => ()
case t: T => ()
}

0 comments on commit 393bd28

Please sign in to comment.