Skip to content

Commit c878c01

Browse files
committed
Add test
1 parent 85e062f commit c878c01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/neg/case-semi.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)