mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
16 lines
274 B
Kotlin
Vendored
16 lines
274 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
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"
|
|
}
|