10 lines
124 B
Kotlin
Vendored
10 lines
124 B
Kotlin
Vendored
fun interface Foo {
|
|
fun invoke(): String
|
|
}
|
|
|
|
fun foo(f: Foo) = f.invoke()
|
|
|
|
fun box(): String {
|
|
return foo { "OK" }
|
|
}
|