Files
kotlin/compiler/testData/codegen/box/closures/simplestClosureAndBoxing.kt
2018-08-09 14:22:50 +03:00

8 lines
144 B
Kotlin
Vendored

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