mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
13 lines
178 B
Kotlin
Vendored
13 lines
178 B
Kotlin
Vendored
class Outer {
|
|
val result = "OK"
|
|
|
|
inner class Inner {
|
|
fun foo() = result
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val f = Outer.Inner::foo
|
|
return f(Outer().Inner())
|
|
}
|