diff options
author | michelou <michelou@epfl.ch> | 2006-10-27 14:34:21 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-10-27 14:34:21 +0000 |
commit | a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac (patch) | |
tree | 05e59f01958c7b863ff96e6685bae5aaac6e11b6 /test/files/neg | |
parent | 31e93255cbbc4dc99d4227aade3d2d1956830d1a (diff) | |
download | scala-a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac.tar.gz scala-a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac.tar.bz2 scala-a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac.zip |
moved bug779.scala from pos to neg
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug779.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug779.scala | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/bug779.check b/test/files/neg/bug779.check new file mode 100644 index 0000000000..6621dc183a --- /dev/null +++ b/test/files/neg/bug779.check @@ -0,0 +1,4 @@ +bug779.scala:6 error: method method ast has return statement; needs result type + override def ast = return null + ^ +one error found diff --git a/test/files/neg/bug779.scala b/test/files/neg/bug779.scala new file mode 100644 index 0000000000..9179fab4f8 --- /dev/null +++ b/test/files/neg/bug779.scala @@ -0,0 +1,8 @@ +abstract class Foo { + trait Node { + def ast: Object = null + } + trait Something extends Node { + override def ast = return null + } +} |