v2.4.10-RCPre-release
Kotlin 2.4.10-RC
Added 1
- Introduce kotlinr in the Kotlin distribution
Fixed 9
- JVM: IllegalStateException when using const val in nested Java annotation array argument
- K2: Wrong sourcePsi is set for SymbolPsiLiteral in SLC for annotation arguments referencing a const val
- Reified type inference: expected type not propagated into inline call inside lambda with elvis operator
- Compose compiler: stability of post-cast types now used in skipping checks instead of pre-cast types
- Native: IrTypeAliasSymbolImpl is already bound error for iosSimulatorArm64
- kotlinUpgradeYarnLock skips lock file regeneration when kotlinNpmInstall is up-to-date, causing kotlinStoreYarnLock to fail
- False positive warning for JS and Wasm compilations when CRI is enabled
- @file:CompilerOptions("-jvm-target", ...) ignored in .main.kts scripts in Kotlin 2.4.0, falling back to JVM target 1.8
- K2 scripting: FirResolvedTypeRef exception when resolving extension functions from imported scripts
Changelog
Compiler
KT-86939JVM: IllegalStateException "No value for annotation parameter" when using const val in nested Java annotation array argumentKT-83766K2: Wrong sourcePsi is set forSymbolPsiLiteralin SLC for annotation arguments referencing a const valKT-86728Reified type inference: expected type not propagated into inline call inside lambda with elvis operator
Compose compiler
b/522127447Fixed a bug that was making the stability of pre-cast types be used in certain skipping checks instead of the stability of post-cast types
Klibs
KT-86501Native: IrTypeAliasSymbolImpl is already bound. Signature: kotlinx.datetime/Instant|null[0] on iosSimulatorArm64
Tools. CLI
KT-86930Introducekotlinrin the Kotlin distribution
Tools. Gradle. JS
KT-86057kotlinUpgradeYarnLock skips lock file regeneration when kotlinNpmInstall is up-to-date, causing kotlinStoreYarnLock to fail
Tools. Gradle. Multiplatform
KT-87084False positive warning for JS and Wasm compilations when CRI is enabled