Files
wren/test/super/call_other_method.wren
T

24 lines
441 B
Plaintext
Raw Normal View History

2013-12-13 08:37:49 -08:00
class Base {
foo {
io.write("Base.foo")
}
}
class Derived is Base {
bar {
io.write("Derived.bar")
super.foo
}
}
(new Derived).bar
2013-12-13 08:37:49 -08:00
// 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.
2013-12-20 07:05:31 -08:00
// TODO: Super setter calls.