Adjusted to the current syntax of def parameters, i.e. => Type

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@4345 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
mihaylov 2005-06-29 07:57:27 +00:00
parent c95fa231b3
commit 482fa072e3
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;
}