Files
kotlin-fork/js/js.translator/testData/box/closure/closureFunctionAsArgument.kt
T
2017-07-19 12:24:09 +03:00

12 lines
177 B
Kotlin
Vendored

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