fun foo2(f: (Int) -> Unit) { f(1) } fun main(args: String) { foo2(fun(i) { val p = i }) }