v2.4.10
Kotlin 2.4.10
Added 1
- Introduce kotlinr in the Kotlin distribution
Fixed 12
- K/Wasm: Fix missing files in compiler output directory with multimodule-closed-world and incremental compilation
- JVM: Fix IllegalStateException "No value for annotation parameter" when using const val in nested Java annotation array argument
- K2: Fix wrong sourcePsi set for SymbolPsiLiteral in SLC for annotation arguments referencing a const val
- Reified type inference: Fix expected type not propagated into inline call inside lambda with elvis operator
- Compose Compiler 2.4: Fix classes previously inferred as stable now reported as runtime or Uncertain
- Native: Fix IrTypeAliasSymbolImpl already bound error for kotlinx.datetime/Instant|null on iosSimulatorArm64
- Gradle, BCV: Fix open version range in kotlinAbiValidationCompatClasspath causing kotlin-build-tools-impl to resolve to 2.4.20-Beta1 instead of 2.4.0
- jsBrowserTest: Fix failing with "exited with errors (exit code: 1)"
- kotlinUpgradeYarnLock: Fix skipping lock file regeneration when kotlinNpmInstall is up-to-date, causing kotlinStoreYarnLock to fail
- Fix 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: Fix FirResolvedTypeRef exception when resolving extension functions from imported scripts
Changelog
Backend. Wasm
KT-87066K/Wasm: Not all files are presented in compiler output directory with multimodule-closed-world and incremental compilation
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/522127447Compose Compiler 2.4: classes previously inferredstablenow reportedruntime/Uncertain
Klibs
KT-86501Native: IrTypeAliasSymbolImpl is already bound. Signature: kotlinx.datetime/Instant|null[0] on iosSimulatorArm64
Tools. CLI
KT-86930Introducekotlinrin the Kotlin distribution
Tools. Gradle. BCV
KT-87223Gradle, BCV: open version range in kotlinAbiValidationCompatClasspath causes kotlin-build-tools-impl to resolve to 2.4.20-Beta1 instead of 2.4.0
Tools. Gradle. JS
KT-87304jsBrowserTest fails with "exited with errors (exit code: 1)"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