mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
19 lines
313 B
Kotlin
19 lines
313 B
Kotlin
class C {
|
|
public object Obj {
|
|
val o = "O"
|
|
|
|
object InnerObj {
|
|
fun k() = "K"
|
|
}
|
|
|
|
class D {
|
|
val ko = "KO"
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val res = C.Obj.o + C.Obj.InnerObj.k() + C.Obj.D().ko
|
|
return if (res == "OKKO") "OK" else "Fail: $res"
|
|
}
|