Kotlin Multiplatform Apr 9, 2024 Pre-release

v2.0.0-RC1

What's New

Kotlin 2.0.0-RC1 stabilizes the K2 compiler by removing pre-release status and delivering over 200 bug fixes across Analysis API, type inference, Java interoperability, and multiplatform compilation. Major improvements include enhanced Kotlin/Wasm support with partial linkage, better diagnostic reporting for deprecations and type errors, and performance optimizations for large framework generation. This release focuses on production readiness with extensive fixes for false positives, missing diagnostics, and edge cases in generic type handling and smart casting.

Highlights

Breaking Changes

  • Typealias as callable qualifier in imports now deprecated under K2
  • Removed pre-release flag from K2 compiler in 2.0-RC
  • Prohibited 'header' and 'impl' keywords in multiplatform projects

Deprecations

  • Using typealias as a callable qualifier in imports
  • KT-57014: Wrong nullability returned from JDK SAM constructor lambda
  • KT-59138: Language feature changes under feature flag

Recent Releases

All releases →