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

21 lines
206 B
Plaintext
Raw Normal View History

2013-12-13 08:37:49 -08:00
class A {
foo {
2015-09-15 07:46:09 -07:00
System.print("A.foo")
2013-12-13 08:37:49 -08:00
}
}
class B is A {}
class C is B {
2015-09-01 08:16:04 -07:00
construct new() {}
2013-12-13 08:37:49 -08:00
foo {
2015-09-15 07:46:09 -07:00
System.print("C.foo")
2013-12-13 08:37:49 -08:00
super.foo
}
}
2015-07-10 09:18:22 -07:00
C.new().foo
2013-12-13 08:37:49 -08:00
// expect: C.foo
// expect: A.foo