mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
20 lines
281 B
Kotlin
Vendored
20 lines
281 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
enum class A {
|
|
X {
|
|
val x = "OK"
|
|
|
|
inner class Inner {
|
|
val y = x
|
|
}
|
|
|
|
val z = Inner()
|
|
|
|
override val test: String
|
|
get() = z.y
|
|
};
|
|
|
|
abstract val test: String
|
|
}
|
|
|
|
fun box() = A.X.test
|