Files
wren/test/super/call_other_method.wren
2013-12-14 15:28:18 -08:00

23 lines
410 B
Plaintext

class Base {
foo {
io.write("Base.foo")
}
}
class Derived is Base {
bar {
io.write("Derived.bar")
super.foo
}
}
Derived.new.bar
// expect: Derived.bar
// expect: Base.foo
// TODO: Super constructor calls.
// TODO: Super operator calls.
// TODO: Calling super outside of a class.
// TODO: Super calls inside nested functions in methods.
// TODO: Super where there is no inherited method.