Add (failing) tests.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
callSuperToString {
|
||||
return new Fn { super.toString }.call()
|
||||
}
|
||||
|
||||
toString { "A.toString" }
|
||||
}
|
||||
|
||||
class B is A {}
|
||||
|
||||
IO.print((new B).callSuperToString) // expect: instance of B
|
||||
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
callSuperToString { super.toString }
|
||||
|
||||
toString { "A.toString" }
|
||||
}
|
||||
|
||||
class B is A {}
|
||||
|
||||
IO.print((new B).callSuperToString) // expect: instance of B
|
||||
Reference in New Issue
Block a user