Files
kotlin-fork/compiler/testData/codegen/box/closures/simplestClosureAndBoxing.kt
T
2019-11-19 11:00:09 +03:00

9 lines
174 B
Kotlin
Vendored

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