Files
wren/test/language/super/implicit_name.wren
T

19 lines
221 B
Plaintext
Raw Normal View History

class Base {
foo {
2015-09-15 07:46:09 -07:00
System.print("Base.foo")
}
}
class Derived is Base {
2015-09-01 08:16:04 -07:00
construct new() {}
foo {
2015-09-15 07:46:09 -07:00
System.print("Derived.foo")
super
}
}
2015-07-10 09:18:22 -07:00
Derived.new().foo
// expect: Derived.foo
// expect: Base.foo