2013-12-13 16:37:49 +00:00
|
|
|
class Base {
|
|
|
|
|
foo {
|
2014-01-05 20:27:12 +00:00
|
|
|
IO.print("Base.foo")
|
2013-12-13 16:37:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Derived is Base {
|
|
|
|
|
bar {
|
2014-01-05 20:27:12 +00:00
|
|
|
IO.print("Derived.bar")
|
2013-12-13 16:37:49 +00:00
|
|
|
super.foo
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-19 15:02:27 +00:00
|
|
|
(new Derived).bar
|
2013-12-13 16:37:49 +00:00
|
|
|
// expect: Derived.bar
|
|
|
|
|
// expect: Base.foo
|
|
|
|
|
|
2013-12-14 23:28:18 +00:00
|
|
|
// TODO: Super operator calls.
|
2013-12-20 15:05:31 +00:00
|
|
|
// TODO: Super setter calls.
|