Add (failing) tests.

This commit is contained in:
Bob Nystrom
2015-05-19 06:47:42 -07:00
parent be5a42dc22
commit 8834dcfe1d
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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