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

12 lines
185 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-09-15 07:46:09 -07:00
System.print(B.new().callSuperToString) // expect: instance of B