Skip to content

Commit 73f099f

Browse files
authored
Merge pull request #12542 from dotty-staging/fix-11973
Fix #11973: Add regression test
2 parents 30da597 + 393bd28 commit 73f099f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/11973.scala

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
enum E:
2+
case C
3+
4+
trait T
5+
6+
def f(x: E | T): Unit = x match {
7+
case e: E => ()
8+
case t: T => ()
9+
}

0 commit comments

Comments
 (0)