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