We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7b89e7 commit 393bd28Copy full SHA for 393bd28
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