Closed flbulgarelli closed 8 years ago
Wollok is accepting the following program, but it shoudn't:
class Foo { method foo() { console.println('foo') } } class Baz inherits Foo { override method foo() }
Also, in runtime, if you do new Baz().foo(), it evaluates the superclass version.
new Baz().foo()
Done ! Check PR and close please
Done :smile:
Wollok is accepting the following program, but it shoudn't:
Also, in runtime, if you do
new Baz().foo()
, it evaluates the superclass version.