Files
wren/test/language/super/call_same_method.wren

19 lines
225 B
Plaintext
Raw Permalink Normal View History

class Base {
foo {
System.print("Base.foo")
}
}
class Derived is Base {
construct new() {}
foo {
System.print("Derived.foo")
super.foo
}
}
Derived.new().foo
// expect: Derived.foo
// expect: Base.foo