Skip to content

Commit

Permalink
Merge pull request #12542 from dotty-staging/fix-11973
Browse files Browse the repository at this point in the history
Fix #11973: Add regression test
  • Loading branch information
bishabosha authored Jun 9, 2021
2 parents 30da597 + 393bd28 commit 73f099f
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 73f099f

Please sign in to comment.