Skip to content

Commit 21bb6fb

Browse files
committed
Temporary workaround bug in K/N 1.3.70 codegen (KT-37061)
1 parent 3651276 commit 21bb6fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kotlinx-coroutines-core/common/src/flow/internal/FlowCoroutine.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ internal suspend fun <R> flowScope(@BuilderInference block: suspend CoroutineSco
4848
*/
4949
internal fun <R> scopedFlow(@BuilderInference block: suspend CoroutineScope.(FlowCollector<R>) -> Unit): Flow<R> =
5050
flow {
51-
val collector = this
52-
flowScope { block(collector) }
51+
flowScope { block(this@flow) }
5352
}
5453

5554
internal fun <T> CoroutineScope.flowProduce(

0 commit comments

Comments
 (0)