Files
kotlin/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt
2019-11-19 11:00:09 +03:00

19 lines
270 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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