github JetBrains/kotlin v2.2.0-RC
Kotlin 2.2.0-RC

latest releases: build-2.3.0-dev-5671, build-2.3.0-dev-5665, build-2.3.0-dev-5661...
pre-release3 months ago

Changelog

Compiler

Fixes

  • KT-77259 Confusing message for ANNOTATION_WILL_BE_APPLIED_ALSO_TO_PROPERTY_OR_FIELD
  • KT-77219 "@Composable annotation is not applicable" on vararg @Composable () -> Unit in Kotlin 2.2.0
  • KT-77397 Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL when calling declaration with contextual function type in signature
  • KT-74470 NSME on calling in runtime internal constructor of value class with default arg from tests
  • KT-77137 K2: Controversial behavior allows resolving annotation arguments on a companion inside it
  • KT-77150 Native: compilation fails with an assertion error
  • KT-76357 K2: a nested class annotation observes member declarations of the outer class
  • KT-77283 Binary compatibility of FirDeclarationChecker
  • KT-75457 Native: cache machinery uses stdlib cache with default runtime options even if custom runtime options are supplied when partial linkage is disabled
  • KT-76898 K2: ClassCastException when data class shadows supertype's componentX method with wrong type
  • KT-77078 K2: anonymous object is wrongly allowed to implement interfaces by unsafe Delegation
  • KT-77001 Leave ForbidParenthesizedLhsInAssignments as a warning

Compose compiler

  • CMP-7873 Native build fails with "e: Compilation failed: Exception during generating code for following declaration"
  • b/412584977 Fix false positive for overriding open functions from older dependencies

JavaScript

  • KT-77418 KJS: cannot debug with whole-program granularity
  • KT-77271 KJS / Serialization: "Cannot set property message of Error which has only a getter"
  • KT-69591 KJS / d.ts: Wrong type of SerializerFactory for abstract classes
  • KT-42305 KJS / IR: "Class constructor is marked as private" @JsExport produces wrong TS code for sealed classes
  • KT-52563 KJS / IR: Invalid TypeScript generated for class extending base class with private constructor

Native

  • KT-76992 Native: update llvm for windows targets

Native. Build Infrastructure

  • KT-77349 Kotlin/Native: default cache for stdlib is unused

Tools. Gradle

  • KT-76138 Compile against Gradle API 8.14
  • KT-76139 Run integration tests against Gradle 8.14
  • KT-76137 Compatibility with Gradle 8.14 release
  • KT-76797 KGP: StdlibDependencyManagementKt.configureStdlibVersionAlignment() triggering eager configuration realization
  • KT-77288 Using 'KotlinJvmOptions' is an error - Gradle sync issue when using 2.2.0-Beta2 with Android Gradle Plugin
  • KT-77035 A compiler diagnostic isn't reported when its severity is set to warning with Gradle
  • KT-73142 Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilder
  • KT-75823 Resources bundle with XCFrameworks for iOS

Tools. Gradle. JS

  • KT-77119 KJS: Gradle: Setting custom environment variables in KotlinJsTest tasks no longer works

Tools. Gradle. Native

  • KT-77067 Kotlin Gradle plugin with the configuration cache passes all platform libraries to the compiler when compiling a binary for the first time

Tools. Wasm

  • KT-76948 Wasm: Rename kotlinBinaryenSetup and kotlinD8Setup

Don't miss a new kotlin release

NewReleases is sending notifications on new releases.