mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
23 lines
275 B
Kotlin
Vendored
23 lines
275 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
class A {
|
|
@JvmField val b = B()
|
|
}
|
|
|
|
class B {
|
|
@JvmField val c = C()
|
|
|
|
@JvmField val result = "OK"
|
|
}
|
|
|
|
class C {
|
|
@JvmField var d = "Fail"
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
a.b.c.d = a.b.result
|
|
return a.b.c.d
|
|
}
|