Files
kotlin-fork/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt
T
Jinseong Jeon c744dfba9c FIR: distinguish anonymous object as enum entry when scoping
so that `this` reference with the enum entry name as label can be
resolved
2020-08-02 18:06:15 +03:00

18 lines
240 B
Kotlin
Vendored

enum class A {
X {
val x = "OK"
inner class Inner {
fun foo() = this@X.x
}
val z = Inner()
override val test = z.foo()
};
abstract val test: String
}
fun box() = A.X.test