JetBrains Releases Kotlin 2.4.20-Beta2 With Coroutine Stack Trace Recovery
Updated
Updated · InfoWorld · Jul 28
JetBrains Releases Kotlin 2.4.20-Beta2 With Coroutine Stack Trace Recovery
2 articles · Updated · InfoWorld · Jul 28
Summary
Kotlin 2.4.20-Beta2 adds experimental coroutine stack trace recovery, letting developers recreate exceptions without a kotlinx.coroutines dependency and making rethrown coroutine errors easier to debug.
The July 2 beta also expands multiplatform support: Kotlin/Wasm now supports the Wasmtime runtime and aligns companion-object initialization with JVM behavior, fixing earlier cross-platform inconsistencies.
Swift export gains cross-language inheritance for reverse-import patterns, while Kotlin/JS adds an experimental browser-testing DSL and can export suspend lambdas as native JavaScript async functions.
Four experimental collection checks—.allDistinct(), .allDistinctBy(), .allEqual(), and .allEqualBy()—aim to replace inefficient equality and uniqueness workarounds.
JetBrains also shipped the first experimental Kotlin compiler native image, a drop-in kotlinc replacement designed for faster startup and higher performance.