Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 73f099f

Browse files
authoredJun 9, 2021
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

Lines changed: 9 additions & 0 deletions
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)
Please sign in to comment.