Kotlin 2.1.0-RC
Pre-release
Pre-release
Changelog
Backend. Wasm
KT-72297[Wasm] Unused associated object class lead to compiler fail
Compiler
KT-72281K/N: "Failed to wait for cache to be built"KT-72238Argument type mismatch in builder inside extension function after ?:KT-71751K2: Skipping code in last statement of lambdaKT-72552AutoboxingTransformer fails on during linkage on nested lambdas with cinteroped typesKT-71649K2: Put operator on mutableMap<T?, V>() causes crashes on null keyKT-71508JAVA_CLASS_INHERITS_KT_PRIVATE_CLASS isn't reported when java class is inherited from an effectively private classKT-72178K2: "Unexpected FirPlaceholderProjectionImpl" exception when using "_" as key type in EnumMapKT-72302K2: no error on type operator in annotation parameter default valueKT-72173K2: simple object names from root package are resolved without imports in non-root packages when used as values
Compose compiler
b/376058538Fix stack overflow when inferring stability of indirect generic loopb/339322843Transform@Composableproperty delegate references
IR. Inlining
KT-72521Kotlin/Native: java.lang.AssertionError: kfun:androidx.compose.runtime#access$<get-androidx_compose_runtime_ProvidedValue$stable>$p$tComposerKt(){}kotlin.IntKT-72623Don't generate synthetic accessors in files other than the one being lowered
IR. Interpreter
KT-72356K2 Native: IllegalStateException when annotation has the same source range as a constant in another file
Native. Runtime. Memory
KT-71401K/N: CMS barrier can be executed on an unregisterred thread
Tools. CLI
KT-72311KotlinCliJavaFileManagerImpl caches empty result and broke repeated analyses
Tools. Daemon
Tools. Gradle
KT-72467kotlin.sourceSets extension not added for KotlinBaseApiPlugin.createKotlinAndroidExtension()KT-72495Warn about kotlin-compiler-embeddable loaded along KGPKT-72387KGP 2.1.0-RC-227 changes cause KSP to crash calling produceUnpackedKlibKT-72303KGP 2.1.0-Beta2 broke compatibility with KSPKT-72651Unable to usetargetfor KotlinBaseApiPlugin.createKotlin(Jvm/Android)Extension()
Tools. Gradle. Multiplatform
KT-72454Revert changes made in KT-69899 i.e. make kotlin.android.buildTypeAttribute.keep = false by default again
Tools. Gradle. Native
KT-72366KGP 2.1.0-Beta2 doesn't downloadkotlin-native-prebuiltwhen running DokkaKT-71051K/N dependencies are re-downloaded multiple times on Windows
Tools. JPS
KT-68565K2: IllegalStateException: Source classes should be created separately before referencing
Tools. Kapt
KT-71776K2 Kapt in 2.1.0-Beta1 fails withe: java.lang.IllegalStateException: FIR symbol "class org.jetbrains.kotlin.fir.symbols.impl.FirValueParameterSymbol" is not supported in constant evaluation