We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e062f commit c878c01Copy full SHA for c878c01
tests/neg/case-semi.scala
@@ -0,0 +1,9 @@
1
+object Test with
2
+ type X = Int
3
+ val x: X = 1
4
+
5
+ type T2 = X match { case Int => String case String => Int }
6
+ x match { case 1 => 3; case 2 => 4 }
7
+ x match { case 1 => 3 case 2 => 4 }
8
9
+ type T1 = X match { case Int => String; case String => Int } // error // error
0 commit comments