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