mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
110 B
Kotlin
Vendored
9 lines
110 B
Kotlin
Vendored
class A
|
|
|
|
fun A.foo(result: String) = result
|
|
|
|
fun box(): String {
|
|
val x = A::foo
|
|
return x(A(), "OK")
|
|
}
|