v2.2.0
What's New
Kotlin 2.2.0 delivers major stability improvements to the K2 compiler with 30+ Analysis API fixes, full context parameter support across all tooling, and performance optimizations for type inference and SAM conversion. New features include context-sensitive resolution, WASM annotation instantiation, and JVM default methods enabled by default, while deprecated language versions 1.8-1.9 encourage migration to modern Kotlin.
Highlights
- Context parameters now fully supported across compiler, Analysis API, and light classes
- K2 compiler performance improvements including nested flexible types and SAM conversion optimization
- WASM backend gains annotation class instantiation support and new RTTI approach
- Analysis API enhancements with 30+ fixes for FIR stability and symbol resolution
- JVM default interface methods now enabled by default with -Xjvm-default=all-compatibility
- Context-sensitive resolution support in type, call-argument, and annotation positions
Breaking Changes
- Language versions 1.8 and 1.9 deprecated, users should upgrade to 2.0 or later
- KaClassLikeSymbol.classIdIfNonLocal renamed to classId
- KtCallableSymbol.callableIdIfNonLocal renamed to callableId
- ForbidParenthesizedLhsInAssignments changed from error to warning
Deprecations
- -Xextended-compiler-checks flag deprecated in favor of deprecation cycle
- kotlin.concurrent.AtomicRef<Int> usage now generates warning diagnostic
- Discourage usage of kotlin.concurrent Native atomics in favor of new atomics API
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 →