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