blob: 6a03b709f66126802119fd247dc3295bf4c22083 [file]
// IGNORE_BACKEND_FIR: JVM_IR
fun f(a : Int?, b : Int.(Int)->Int) = a?.b(1)
fun box(): String {
val x = f(1) { this+it+2 }
return if (x == 4) "OK" else "fail"
}