Handle references to fields with inheritance in closures.

This commit is contained in:
Bob Nystrom
2014-01-15 07:03:24 -08:00
parent 9e30fa67ed
commit eb1c0284dd
3 changed files with 62 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
class Base {
foo {
IO.print("Base.foo")
}
}
class Derived is Base {
foo {
IO.print("Derived.foo")
super
}
}
(new Derived).foo
// expect: Derived.foo
// expect: Base.foo