mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
16 lines
255 B
Plaintext
16 lines
255 B
Plaintext
import A.B.foo
|
|
import A.B.x
|
|
|
|
class A() {
|
|
class object {
|
|
class B() {
|
|
class object {
|
|
val x = 1
|
|
fun foo() = "2"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box() = if (x == 1 && foo() == "2") "OK" else "fail"
|