// FIR_IDENTICAL // !SKIP_TXT interface Context { fun proceed(): T } interface A { fun process(block: Context.(T) -> Unit) } fun processNested(body: () -> T): T { return body() } fun test(pipeline: A) { pipeline.process { // OK: processNested { /* no return */ proceed() /*: Any */ /* implicit coercion to Unit */ } return@process processNested { proceed() } } }