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

20 lines
256 B
Plaintext
Raw Normal View History

2013-12-13 08:37:49 -08:00
class Base {
foo {
2014-01-05 12:27:12 -08:00
IO.print("Base.foo")
2013-12-13 08:37:49 -08:00
}
}
class Derived is Base {
bar {
2014-01-05 12:27:12 -08:00
IO.print("Derived.bar")
2013-12-13 08:37:49 -08:00
super.foo
}
}
2015-07-10 09:18:22 -07:00
Derived.new().bar
2013-12-13 08:37:49 -08:00
// expect: Derived.bar
// expect: Base.foo
// TODO: Super operator calls.
2013-12-20 07:05:31 -08:00
// TODO: Super setter calls.