8b395589be
In InnerClassesLowering, the type of the "outer$0" expression should be the outer class, not the inner class. In EnumClassLowering, the type of the enum entry is the type of its class or the type of the enum class, but not the type of initialierExpression which is always Unit
18 lines
247 B
Kotlin
Vendored
18 lines
247 B
Kotlin
Vendored
open class A {
|
|
open val foo: String = "OK"
|
|
}
|
|
|
|
open class B : A() {
|
|
inner class E {
|
|
val foo: String = super<A>@B.foo
|
|
}
|
|
}
|
|
|
|
class C : B() {
|
|
inner class D {
|
|
val foo: String = super<B>@C.foo
|
|
}
|
|
}
|
|
|
|
fun box() = C().foo
|