Files
kotlin-fork/js/js.translator/testData/box/examples/simplestClosureAndBoxing.kt
T
2016-09-29 12:00:44 +03:00

8 lines
138 B
Kotlin
Vendored

fun box(): String {
return if (int_invoker({ 7 }) == 7) "OK" else "fail"
}
fun int_invoker(gen: () -> Int): Int {
return gen()
}