mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
17 lines
257 B
Kotlin
17 lines
257 B
Kotlin
class A() {
|
|
|
|
fun ok() = Foo.Bar.bar() + Foo.Bar.barv
|
|
|
|
private object Foo {
|
|
fun foo() = "O"
|
|
val foov = "K"
|
|
|
|
public object Bar {
|
|
fun bar() = foo()
|
|
val barv = foov
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box() = A().ok()
|