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 2fe7940 commit 798b0d3Copy full SHA for 798b0d3
tests/neg/i3812.scala
@@ -1,11 +1,7 @@
1
object Test {
2
def main(args: Array[String]): Unit = {
3
- case class Box(v: Int)
4
-
5
val x = 42
6
val Y = "42"
7
- var Z1 = Box(4)
8
- val Z2 = Box(4)
9
10
x match { case { 42 } => () } // error
11
x match { case { "42".toInt } => () } // error
0 commit comments