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