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:
parent
c95fa231b3
commit
482fa072e3
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue