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