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 18d0361 commit 96afef1Copy full SHA for 96afef1
tests/pos/i1846.scala
tests/run/i1846.check
@@ -0,0 +1,4 @@
1
+0
2
+42
3
4
tests/run/i1846.scala
@@ -0,0 +1,22 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val x = 42
+
5
+ x match {
6
+ case {42}.toString => println(42)
7
+ case _ => println(0)
8
+ }
9
10
+ 42 match { case { 42 } => println(42) }
11
12
+ 42 match {
13
+ case { 42 }.toString => println(42)
14
15
16
17
+ "h" match {
18
+ case { 42.toString } => println(42)
19
20
21
22
+}
0 commit comments