forked from Mirror/wren
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
19 lines
176 B
Plaintext
19 lines
176 B
Plaintext
class A {
|
|
foo {
|
|
IO.print("A.foo")
|
|
}
|
|
}
|
|
|
|
class B is A {}
|
|
|
|
class C is B {
|
|
foo {
|
|
IO.print("C.foo")
|
|
super.foo
|
|
}
|
|
}
|
|
|
|
(new C).foo
|
|
// expect: C.foo
|
|
// expect: A.foo
|