summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-10-27 14:34:21 +0000
committermichelou <michelou@epfl.ch>2006-10-27 14:34:21 +0000
commita7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac (patch)
tree05e59f01958c7b863ff96e6685bae5aaac6e11b6 /test
parent31e93255cbbc4dc99d4227aade3d2d1956830d1a (diff)
downloadscala-a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac.tar.gz
scala-a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac.tar.bz2
scala-a7a95ea3deb7c31f2f9388aeadb57e13cf3ffbac.zip
moved bug779.scala from pos to neg
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/bug779.check4
-rw-r--r--test/files/neg/bug779.scala (renamed from test/files/pos/bug779.scala)4
2 files changed, 6 insertions, 2 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/pos/bug779.scala b/test/files/neg/bug779.scala
index 01db156a59..9179fab4f8 100644
--- a/test/files/pos/bug779.scala
+++ b/test/files/neg/bug779.scala
@@ -1,8 +1,8 @@
abstract class Foo {
trait Node {
- def ast : Object = null;
+ def ast: Object = null
}
trait Something extends Node {
- override def ast = return null;
+ override def ast = return null
}
}