mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
25 lines
430 B
Kotlin
Vendored
25 lines
430 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// LANGUAGE_VERSION: 1.2
|
|
|
|
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 |