mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
19 lines
176 B
Plaintext
19 lines
176 B
Plaintext
class A {
|
|
foo {
|
|
IO.write("A.foo")
|
|
}
|
|
}
|
|
|
|
class B is A {}
|
|
|
|
class C is B {
|
|
foo {
|
|
IO.write("C.foo")
|
|
super.foo
|
|
}
|
|
}
|
|
|
|
(new C).foo
|
|
// expect: C.foo
|
|
// expect: A.foo
|