Files
kotlin/compiler/testData/codegen/classes/simplestClosureAndBoxing.jet
2011-12-20 22:56:13 +04:00

8 lines
144 B
Plaintext

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