Files
kotlin-fork/backend.native/tests/external/codegen/box/closures/simplestClosureAndBoxing.kt
T
2017-03-13 15:31:46 +03: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()
}