Files
kotlin-fork/compiler/testData/codegen/box/closures/simplestClosureAndBoxing.kt
T
2018-06-28 12:26:41 +02:00

9 lines
170 B
Kotlin
Vendored

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