Kotlin 2.2.0-RC
Pre-release
Pre-release
Changelog
Compiler
Fixes
KT-77259Confusing message forANNOTATION_WILL_BE_APPLIED_ALSO_TO_PROPERTY_OR_FIELDKT-77219"@Composableannotation is not applicable" on vararg@Composable() -> Unit in Kotlin 2.2.0KT-77397Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL when calling declaration with contextual function type in signatureKT-74470NSME on calling in runtime internal constructor of value class with default arg from testsKT-77137K2: Controversial behavior allows resolving annotation arguments on a companion inside itKT-77150Native: compilation fails with an assertion errorKT-76357K2: a nested class annotation observes member declarations of the outer classKT-77283Binary compatibility of FirDeclarationCheckerKT-75457Native: cache machinery uses stdlib cache with default runtime options even if custom runtime options are supplied when partial linkage is disabledKT-76898K2: ClassCastException when data class shadows supertype'scomponentXmethod with wrong typeKT-77078K2: anonymous object is wrongly allowed to implement interfaces by unsafe DelegationKT-77001Leave ForbidParenthesizedLhsInAssignments as a warning
Compose compiler
CMP-7873Native build fails with "e: Compilation failed: Exception during generating code for following declaration"b/412584977Fix false positive for overriding open functions from older dependencies
JavaScript
KT-77418KJS: cannot debug with whole-program granularityKT-77271KJS / Serialization: "Cannot set property message of Error which has only a getter"KT-69591KJS / d.ts: Wrong type of SerializerFactory for abstract classesKT-42305KJS / IR: "Class constructor is marked as private"@JsExportproduces wrong TS code for sealed classesKT-52563KJS / IR: Invalid TypeScript generated for class extending base class with private constructor
Native
KT-76992Native: update llvm for windows targets
Native. Build Infrastructure
KT-77349Kotlin/Native: default cache for stdlib is unused
Tools. Gradle
KT-76138Compile against Gradle API 8.14KT-76139Run integration tests against Gradle 8.14KT-76137Compatibility with Gradle 8.14 releaseKT-76797KGP: StdlibDependencyManagementKt.configureStdlibVersionAlignment() triggering eager configuration realizationKT-77288Using 'KotlinJvmOptions' is an error - Gradle sync issue when using 2.2.0-Beta2 with Android Gradle PluginKT-77035A compiler diagnostic isn't reported when its severity is set to warning with GradleKT-73142Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilderKT-75823Resources bundle with XCFrameworks for iOS
Tools. Gradle. JS
KT-77119KJS: Gradle: Setting custom environment variables in KotlinJsTest tasks no longer works
Tools. Gradle. Native
KT-77067Kotlin Gradle plugin with the configuration cache passes all platform libraries to the compiler when compiling a binary for the first time
Tools. Wasm
KT-76948Wasm: Rename kotlinBinaryenSetup and kotlinD8Setup