Skip to content

Kotlin 2.1.20-RC

Pre-release
Pre-release
Compare
Choose a tag to compare
@KotlinBuild KotlinBuild released this 19 Feb 14:18
· 1 commit to 2.1.20 since this release

Changelog

Compiler

  • KT-74929 False positive TYPE_PARAMETER_OF_PROPERTY_NOT_USED_IN_RECEIVER if it is used with T&Any
  • KT-74227 K2: "Cannot infer type for this parameter. Please specify it explicitly" caused by lambda in another lambda with a parameterized function type
  • KT-74474 K2: Report more precise diagnostic when last expression of non-unit lambda is a statement
  • KT-74478 K2: False negative RETURN TYPE_MISMATCH if the last statement of a lambda is indexed assignment
  • KT-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 class
  • b/390151896 Fix default arguments with varargs in @Composable functions
  • b/388030459 Prevent usage of transitive captures in lambda memoization
  • b/310004740 Check vararg parameter length in skipping logic
  • b/393400768 Use -1 for .changed call if nullable enum parameter is null

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 Compose
  • KT-75159 Compose: Missing 'FunctionKeyMeta' annotation on lamdas declared in non-composable function

Tools. Gradle

  • KT-74997 Unexpected KGP warnings about kotlin scripting plugin
  • KT-75026 Corrupted NonSynchronizedMetricsContainer in parallel Gradle build
  • KT-74846 Gradle Configuration Cache miss on second build with 2.1.20-Beta2
  • KT-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-Beta2
  • KT-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 directory
  • KT-66542 Gradle: JVM target with withJava() produces a deprecation warning
  • KT-37964 Gradle application/distribution plugin does not copy and name jar files correctly when using installDist task for multiplatform project
  • KT-30878 It's impossible to have .java sources in a Multiplatform Gradle Project with Android, because android() and jvm { withJava() } targets can not be applied to one and the same Gradle Project
  • KT-66962 Kapt with Kotlin Multiplatform: Cannot query the value of this provider because it has no value available
  • KT-71074 Optimize Granular Metadata Dependencies Transformation for Import after adding support for Project Isolation
  • KT-74727 Dependency resolve from a single target KMP module to another kmp module fails on non-found PSM
  • KT-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