Skip to content

Commit 815e426

Browse files
committed
Fixed #2005: Add test case.
1 parent 2da4305 commit 815e426

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/neg/i2005.scala

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

Comments
 (0)