Skip to content

Commit 7d3f2fe

Browse files
cypressioussellmair
authored andcommitted
Remove BuilderInference annotation
Since K2, PCLA (partially constraint lambda analysis) is enabled without any annotations by default.
1 parent 9e3c0fa commit 7d3f2fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

evas/src/commonMain/kotlin/io/sellmair/evas/StateProducerScope.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import kotlinx.coroutines.channels.ProducerScope
55
import kotlinx.coroutines.flow.Flow
66
import kotlinx.coroutines.flow.channelFlow
77
import kotlin.coroutines.CoroutineContext
8-
import kotlin.experimental.ExperimentalTypeInference
98
import kotlin.jvm.JvmName
109

1110
public class StateProducerScope<T : State?> internal constructor(
@@ -32,8 +31,7 @@ public class StateProducerScope<T : State?> internal constructor(
3231
}
3332
}
3433

35-
@OptIn(ExperimentalTypeInference::class)
36-
internal fun <T : State?> stateProducerFlow(@BuilderInference block: suspend StateProducerScope<T>.() -> Unit): Flow<T> {
34+
internal fun <T : State?> stateProducerFlow(block: suspend StateProducerScope<T>.() -> Unit): Flow<T> {
3735
return channelFlow {
3836
with(StateProducerScope(this)) {
3937
block()

0 commit comments

Comments
 (0)