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 c522caa commit deaf44dCopy full SHA for deaf44d
tests/pos-special/fatal-warnings/i8781.scala
@@ -0,0 +1,10 @@
1
+@main
2
+def Test =
3
+
4
+ val x: Int | String = 1
5
6
+ println(x.isInstanceOf[Int])
7
8
+ x match
9
+ case _: Int => println("Int")
10
+ case _: String => println("String")
0 commit comments