Kotlin Multiplatform Feb 13, 2024 Pre-release

v2.0.0-Beta4

What's New

Kotlin v2.0.0-Beta4 delivers critical performance improvements, particularly a 50GB memory allocation fix, alongside extensive compiler stability enhancements across K2, builder inference, and multiplatform support. Major additions include multi-threaded analysis resolution, TypeScript definition generation for Wasm, and platform-specific declaration clash diagnostics. The release resolves numerous type inference inconsistencies and IDE integration issues while strengthening Kotlin/Native and Kotlin/Wasm capabilities.

Highlights

Breaking Changes

  • Forbid multiple labels per statement in K2
  • Forbid local delegated properties with private accessors in public inline functions
  • Deprecate -Xworker-exception-handling=legacy with error in Kotlin/Native

Deprecations

  • Mark @SubclassOptInRequired as experimental
  • Deprecate -Xworker-exception-handling=legacy in Kotlin/Native runtime

Recent Releases

All releases →