fun foo(f: () -> R) = f() fun test() { foo (~bar@ fun(): Boolean { return@bar false }) }