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 2da4305 commit 815e426Copy full SHA for 815e426
tests/neg/i2005.scala
@@ -0,0 +1,7 @@
1
+
2
+object Test {
3
+ val a = 42
4
+ def main(args: Array[String]) = {
5
+ val a: Int = a // error
6
+ }
7
+}
0 commit comments