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