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