package foo

fun f(a: Int?, b: Int.(Int) -> Int) = a?.b(2)

fun box(): String {
    val c1 = f (null) {
        it + this
    } != null
    if (c1) return "fail1"
    if (f(3) {
        it + this
    } != 5) return "fail2"
    return "OK"
}
