diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-06-29 07:57:27 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-06-29 07:57:27 +0000 |
commit | 239380408564518fe11f7f3b9d5abb5bb29f15da (patch) | |
tree | eacb7166a85b0fa8438d82c79289465ef6aee92b /test/files/neg | |
parent | cd6a645300dfc82682161d7fecccf79e31b58017 (diff) | |
download | scala-239380408564518fe11f7f3b9d5abb5bb29f15da.tar.gz scala-239380408564518fe11f7f3b9d5abb5bb29f15da.tar.bz2 scala-239380408564518fe11f7f3b9d5abb5bb29f15da.zip |
Adjusted to the current syntax of def parameter...
Adjusted to the current syntax of def parameters, i.e. => Type
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug96.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug96.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/bug96.check b/test/files/neg/bug96.check index 99b157e0ce..640f583697 100644 --- a/test/files/neg/bug96.check +++ b/test/files/neg/bug96.check @@ -1,4 +1,4 @@ -bug96.scala:5: method foo:(def scala.Any)java.lang.Object in class B overrides nothing - override def foo(def x: Any): Object = null; +bug96.scala:5: method foo:(=> scala.Any)java.lang.Object in class B overrides nothing + override def foo(x: => Any): Object = null; ^ one error found diff --git a/test/files/neg/bug96.scala b/test/files/neg/bug96.scala index 4694e9edc7..2075f3eedf 100644 --- a/test/files/neg/bug96.scala +++ b/test/files/neg/bug96.scala @@ -2,5 +2,5 @@ class A { def foo(x: Any): Object = null; } class B extends A { - override def foo(def x: Any): Object = null; + override def foo(x: => Any): Object = null; } |