first step of refactoring code to generate 'this' expressions and receivers in ExpressionCodegen; correctly generate references to outer class properties in inner superclass constructor call
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class Outer() {
|
||||
public val s = "xyzzy"
|
||||
|
||||
class InnerBase(public val name: String) {
|
||||
}
|
||||
|
||||
class InnerDerived(): InnerBase(s) {
|
||||
}
|
||||
|
||||
public val x = new InnerDerived()
|
||||
}
|
||||
|
||||
fun box() {
|
||||
val o = new Outer()
|
||||
return if (o.x.name != "xyzzy") "fail" else "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user