fix: recursively bind inherited field references inside nested closures in wrenBindMethodCode

This commit is contained in:
Bob Nystrom
2014-01-15 15:03:24 +00:00
parent 192ce49dc3
commit b4437d5723
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