Files
kotlin-fork/js/js.translator/testData/box/closure/closureFunctionAsArgument.kt
T

11 lines
144 B
Kotlin
Vendored

package foo
fun test(f: () -> String): String {
val funLit = { f() }
return funLit()
}
fun box(): String {
return test { "OK" }
}