kotlinx.coroutines icon indicating copy to clipboard operation
kotlinx.coroutines copied to clipboard

Remove outdated kludges

Open LouisCAD opened this issue 5 months ago • 2 comments
trafficstars

Hello!

KT-28938 is fixed since Kotlin 1.3.60, but Emitters.kt still has those at 2 places, in the bodies of transform and unsafeTransform:

// kludge, without it Unit will be returned and TCE won't kick in, KT-28938
return@collect transform(value)

It seems that the Kotlin/JVM now generates the same bytecode with or without that extra return@collect, according to my quick glance in decompiled Java in the "Kotlin Bytecode" tool window (same number of lines).

Maybe those can be cleanup up, now?

Have a nice day!

LouisCAD avatar Jun 05 '25 12:06 LouisCAD