commit | 21bb6fb201b12e26d6763519b46881f89914d6fc | [log] [tgz] |
---|---|---|
author | Vsevolod Tolstopyatov <qwwdfsad@gmail.com> | Wed Feb 26 17:14:10 2020 +0300 |
committer | Vsevolod Tolstopyatov <qwwdfsad@gmail.com> | Wed Feb 26 17:14:10 2020 +0300 |
tree | 6202696d8a2b9671cea4d5c833a07b21263c6fd0 | |
parent | 365127652d9507a72344703053bf87ad298d228f [diff] |
Temporary workaround bug in K/N 1.3.70 codegen (KT-37061)
diff --git a/kotlinx-coroutines-core/common/src/flow/internal/FlowCoroutine.kt b/kotlinx-coroutines-core/common/src/flow/internal/FlowCoroutine.kt index 36d7a3a..0ce0c33 100644 --- a/kotlinx-coroutines-core/common/src/flow/internal/FlowCoroutine.kt +++ b/kotlinx-coroutines-core/common/src/flow/internal/FlowCoroutine.kt
@@ -48,8 +48,7 @@ */ internal fun <R> scopedFlow(@BuilderInference block: suspend CoroutineScope.(FlowCollector<R>) -> Unit): Flow<R> = flow { - val collector = this - flowScope { block(collector) } + flowScope { block(this@flow) } } internal fun <T> CoroutineScope.flowProduce(