Files
wren/test/super/call_same_method.wren
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

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