Kotlin 2.1.20-RC
Pre-release
Pre-release
Changelog
Compiler
KT-74929
False positive TYPE_PARAMETER_OF_PROPERTY_NOT_USED_IN_RECEIVER if it is used with T&AnyKT-74227
K2: "Cannot infer type for this parameter. Please specify it explicitly" caused by lambda in another lambda with a parameterized function typeKT-74474
K2: Report more precise diagnostic when last expression of non-unit lambda is a statementKT-74478
K2: False negative RETURN TYPE_MISMATCH if the last statement of a lambda is indexed assignmentKT-74203
K2: False negative NO_ELSE_IN_WHEN of a generic type with star projection <*> bounded by a sealed hierarchy
Compose compiler
b/377499888
Allow restarting overridden functions in a final classb/390151896
Fix default arguments with varargs in@Composable
functionsb/388030459
Prevent usage of transitive captures in lambda memoizationb/310004740
Check vararg parameter length in skipping logicb/393400768
Use -1 for.changed
call if nullable enum parameter isnull
Native
KT-74377
Kotlin Native: release executable crashes with error 139
Tools. Compiler Plugins
KT-74102
"Lambda cannot be cast to class kotlin.jvm.functions.Function0" in 2.1.20-Beta1 with ComposeKT-75159
Compose: Missing 'FunctionKeyMeta' annotation on lamdas declared in non-composable function
Tools. Gradle
KT-74997
Unexpected KGP warnings about kotlin scripting pluginKT-75026
Corrupted NonSynchronizedMetricsContainer in parallel Gradle buildKT-74846
Gradle Configuration Cache miss on second build with 2.1.20-Beta2KT-74462
Flaky Kotlin Gradle Plugin Tests: IsInIdeaEnvironmentValueSource$Inject not found
Tools. Gradle. JS
KT-74869
KJS:jsBrowserProductionWebpack
does not minify output with 2.1.20-Beta2KT-74859
Gradle configuration cache issues related to RootPackageJsonTask
Tools. Gradle. Multiplatform
KT-74669
Executable binaries for JVM: a jar generated by jvmJar task isn't added to the build/install/testAppName/lib directoryKT-66542
Gradle: JVM target withwithJava()
produces a deprecation warningKT-37964
Gradle application/distribution plugin does not copy and name jar files correctly when using installDist task for multiplatform projectKT-30878
It's impossible to have .java sources in a Multiplatform Gradle Project with Android, becauseandroid()
andjvm { withJava() }
targets can not be applied to one and the same Gradle ProjectKT-66962
Kapt with Kotlin Multiplatform: Cannot query the value of this provider because it has no value availableKT-71074
Optimize Granular Metadata Dependencies Transformation for Import after adding support for Project IsolationKT-74727
Dependency resolve from a single target KMP module to another kmp module fails on non-found PSMKT-74832
Relax JVM target validation diagnostic in KMP/Jvm projects
Tools. Gradle. Native
KT-74403
:commonizeNativeDistribution fails when configured native targets cannot be built on machine
Tools. Kapt
KT-75202
K2 kapt: mapped type class literal is converted incorrectly