// ISSUE: KT-41164 // WITH_RUNTIME import kotlin.experimental.ExperimentalTypeInference interface MyProducerScope interface MyFlow fun select(x: K, y: K): K = x @OptIn(ExperimentalTypeInference::class) fun myCallbackFlow(@BuilderInference block: MyProducerScope.() -> Unit): MyFlow = null!! fun MyProducerScope<*>.myAwaitClose(block: () -> Unit = {}) {} fun myEmptyFlow(): MyFlow = null!! fun test(): MyFlow { return select( myCallbackFlow { myAwaitClose {} }, myEmptyFlow() ) } fun box(): String = "OK"