Files
kotlin-fork/js/js.translator/testData/box/closure/closureFunctionAsArgument.kt
T
2018-09-12 09:49:25 +03:00

12 lines
178 B
Kotlin
Vendored

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