mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
17 lines
193 B
Plaintext
17 lines
193 B
Plaintext
class Base {
|
|
foo {
|
|
io.write("Base.foo")
|
|
}
|
|
}
|
|
|
|
class Derived is Base {
|
|
foo {
|
|
io.write("Derived.foo")
|
|
super.foo
|
|
}
|
|
}
|
|
|
|
Derived.new.foo
|
|
// expect: Derived.foo
|
|
// expect: Base.foo
|