Files
wren/test/language/super/super_in_inherited_method.wren
T

12 lines
181 B
Plaintext
Raw Normal View History

2015-05-19 06:47:42 -07:00
class A {
callSuperToString { super.toString }
toString { "A.toString" }
}
2015-09-01 08:16:04 -07:00
class B is A {
construct new() {}
}
2015-05-19 06:47:42 -07:00
2015-07-10 09:18:22 -07:00
IO.print(B.new().callSuperToString) // expect: instance of B