mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
20 lines
256 B
Plaintext
20 lines
256 B
Plaintext
class Base {
|
|
foo {
|
|
IO.print("Base.foo")
|
|
}
|
|
}
|
|
|
|
class Derived is Base {
|
|
bar {
|
|
IO.print("Derived.bar")
|
|
super.foo
|
|
}
|
|
}
|
|
|
|
(new Derived).bar
|
|
// expect: Derived.bar
|
|
// expect: Base.foo
|
|
|
|
// TODO: Super operator calls.
|
|
// TODO: Super setter calls.
|