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

9 lines
199 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box() : String {
return if (apply( 5, {arg: Int -> arg + 13 } ) == 18) "OK" else "fail"
}
fun apply(arg : Int, f : (p:Int) -> Int) : Int {
return f(arg)
}