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

22 lines
286 B
Plaintext
Raw Normal View History

2013-12-13 08:37:49 -08:00
class Base {
foo {
2015-09-15 07:46:09 -07:00
System.print("Base.foo")
2013-12-13 08:37:49 -08:00
}
}
class Derived is Base {
2015-09-01 08:16:04 -07:00
construct new() {}
2013-12-13 08:37:49 -08:00
bar {
2015-09-15 07:46:09 -07:00
System.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.