v2.0.20
What's New
Kotlin v2.0.20 delivers significant Analysis API stabilization with the Kt-to-Ka prefix migration, substantial K2 compiler performance improvements, and enhanced multiplatform support including Kotlin/Wasm and Kotlin/Native. The release includes 100+ bug fixes across the compiler, type system, and IDE integration, plus new language features like guard conditions for when expressions and improved string interpolation handling.
Highlights
- Analysis API renamed from Kt prefix to Ka prefix for cleaner API surface
- K2 compiler performance improvements for type resolution and FIR2IR conversion
- Enhanced Kotlin/Wasm support with improved JS interop and bootstrap cleanup
- New guard conditions feature for when-with-subject expressions
- Improved handling of dollar signs in string literals and interpolation
- JSpecify @NullUnmarked annotation support for better Java interop
- Symbol Light Classes fixes for sealed classes, companion objects, and binary resolution
Breaking Changes
- Analysis API: Kt prefix renamed to Ka prefix across all public APIs
- Analysis API: KtSymbol-based APIs now expose only interfaces and abstract classes
- Analysis API: classIdIfNonLocal renamed to classId, callableIdIfNonLocal renamed to callableId
- Analysis API: infix modifiers removed from type equality and subtyping functions
- Kotlin/Wasm: default export usage now produces an error instead of warning
Deprecations
- Context receivers deprecated in favor of context parameters with migration warning
- Smartcasts on class-delegated properties deprecated
- Bitcode embedding support removed for Kotlin/Native
Recent Releases
All releases →
v1.9.0
Jul 6, 2023
Release Notes →
v1.8.22
Jun 8, 2023
Release Notes →
v1.8.21
Apr 25, 2023
Release Notes →
v1.8.20
Apr 3, 2023
Release Notes →
v1.8.10
Feb 2, 2023
Release Notes →
v1.8.0
Dec 28, 2022
Release Notes →
v1.7.22
Nov 28, 2022
Release Notes →
v1.7.21
Nov 9, 2022
Release Notes →
v1.7.20
Sep 29, 2022
Release Notes →
v1.7.10
Jul 8, 2022
Release Notes →
v1.7.0
Jun 9, 2022
Release Notes →