// WITH_RUNTIME // PROBLEM: none fun maybeFoo(): String? { return "foo" } fun capture(block: () -> Unit): Unit = Unit fun test(): String? { var foo = maybeFoo() capture { foo = null } val bar = if (foo == null) 42 else foo return foo }