We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30da597 + 393bd28 commit 73f099fCopy full SHA for 73f099f
tests/pos/11973.scala
@@ -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