diff options
Diffstat (limited to 'tests/neg')
-rw-r--r-- | tests/neg/i2005.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/neg/i2005.scala b/tests/neg/i2005.scala new file mode 100644 index 000000000..fc2e4ddec --- /dev/null +++ b/tests/neg/i2005.scala @@ -0,0 +1,7 @@ + +object Test { + val a = 42 + def main(args: Array[String]) = { + val a: Int = a // error + } +} |