Get basic superclass method calls working.

This commit is contained in:
Bob Nystrom
2013-12-13 08:37:49 -08:00
parent 4957728893
commit d54bca3067
7 changed files with 299 additions and 45 deletions
+18
View File
@@ -0,0 +1,18 @@
class A {
foo {
io.write("A.foo")
}
}
class B is A {}
class C is B {
foo {
io.write("C.foo")
super.foo
}
}
C.new.foo
// expect: C.foo
// expect: A.foo