mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 00:21:28 +00:00
15 lines
260 B
Kotlin
Vendored
15 lines
260 B
Kotlin
Vendored
class A {
|
|
inner class Inner {
|
|
val o = 111
|
|
val k = 222
|
|
}
|
|
|
|
fun result() = (A::Inner)(this).o + (A::Inner)(this).k
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = A().result()
|
|
if (result != 333) return "Fail $result"
|
|
return "OK"
|
|
}
|