diff options
author | Martin Odersky <odersky@gmail.com> | 2008-07-29 12:14:57 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-07-29 12:14:57 +0000 |
commit | bb2c7676f51e6074e41a9e77eb413cbf027a6479 (patch) | |
tree | 9c2e05a951032a0da7b319c91091884443044947 /test/files | |
parent | c925964406607ca53df6d7fcba2ad51ae084655f (diff) | |
download | scala-bb2c7676f51e6074e41a9e77eb413cbf027a6479.tar.gz scala-bb2c7676f51e6074e41a9e77eb413cbf027a6479.tar.bz2 scala-bb2c7676f51e6074e41a9e77eb413cbf027a6479.zip |
fixed Signature generation
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t1033.check | 4 | ||||
-rw-r--r-- | test/files/neg/t1033.scala | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/t1033.check b/test/files/neg/t1033.check new file mode 100644 index 0000000000..16e799264b --- /dev/null +++ b/test/files/neg/t1033.check @@ -0,0 +1,4 @@ +t1033.scala:5: error: return outside method definition + return 10 + ^ +one error found diff --git a/test/files/neg/t1033.scala b/test/files/neg/t1033.scala new file mode 100644 index 0000000000..3aed8bb11a --- /dev/null +++ b/test/files/neg/t1033.scala @@ -0,0 +1,13 @@ +object A { + def f :Int = { + class B { + println("B") + return 10 + } + new B + 20 + } + def main(args: Array[String]) { + f + } +} |