Skip to content

Commit 393bd28

Browse files
Fix #11973: Add regression test
1 parent c7b89e7 commit 393bd28

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)