Files
kotlin-fork/js/js.translator/testFiles/examples/cases/simplestClosureAndBoxing.kt
T
2013-10-01 19:32:38 +04:00

8 lines
144 B
Kotlin

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