Releases: JetBrains/kotlin
Releases Β· JetBrains/kotlin
Kotlin 2.2.20-RC
Changelog
Backend. Wasm
KT-80018
K/Wasm: exceptions don't work properly in JavaScriptCore (vm inside Safari, WebKit)
Compiler
KT-79979
K2: ClassCastException when overriding extension property with delegationKT-79866
kotlinc 2.2.0 silently emits 'NonExistentClass' instead of reporting an errorKT-79276
Dexing fails with "Cannot read field X because is null" with 2.2.0KT-79781
Missing MISSING_DEPENDENCY_CLASS when using type alias with inaccessible RHSKT-79547
"UnsupportedOperationException: Not supported" with inlining and value classesKT-79519
Nested type alias is unreachable from another module
Compose compiler
b/432262806
Fix target description lookupb/436870733
Prevent lambda memoization in local classes inside a composableb/432485982
Fix AbstractMethodError when overriding function with default parameters
JavaScript
KT-79916
K/JS: "Uncaught TypeError" when using 'Xes-long-as-bigint' in compose-htmlKT-79977
KJS: Long.rotateLeft returns incorrect result when BigInts are enabledKT-79644
BigInt enabled for ES 2015 despite being an ES 2020 featureKT-79089
KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode tests
Native
KT-79075
Stuck on Kotlin_getSourceInfo_core_symbolication
Tools. Compiler plugins. Serialization
KT-79695
Serialization does not exclude field-less properties in 2.2.20-Beta2
Tools. Gradle. JS
KT-79921
Web Tooling Gradle API does not respect webpack reconfigurationKT-76996
Wasm: js tasks triggers wasm subtasks
Tools. Gradle. Swift Export
KT-79554
Swift Export status diagnostic is produced even if swift export is not configured
Tools. Kapt
Kotlin 2.2.10
Changelog
Compiler
KT-79276
Dexing fails with "Cannot read field X because is null" with 2.2.0KT-79442
"Multiple annotations of type kotlin.coroutines.jvm.internal.DebugMetadata": 2.2.0-Beta1 generates broken code with JVM default suspend methods in interfacesKT-78815
Symbol not found: __ZNSt3__117bad_function_callD1Ev
error on iOS 15.5 simulator in Xcode 16.3 after update to 2.2.0-Beta2KT-78501
K2: Missing [ABSTRACT_SUPER_CALL] diagnostics for delegated interface method leads to AssertionError: isCompiledToJvmDefault during IR loweringKT-78479
IR lowering failed / Unexpected null argument for composable callKT-76477
Kotlin/Native: fix compiler performance reporting in sources->klib and klibs->binaryKT-78736
Missing [NOT_YET_SUPPORTED_IN_INLINE] diagnostics because of incorrect context updateKT-77685
"IllegalArgumentException: Sequence contains more than one matching element"KT-76365
K2: Missing ABSTRACT_SUPER_CALLKT-78352
False-positive IDENTITY_SENSITIVE_OPERATIONS_WITH_VALUE_TYPE when comparing with equality operator (==)
Compose compiler
KT-78479
Ensure that default transform affects functions entered through a callKT-78490
Fix visibility for default wrappers of protected methodsb/408492167
Emit parameter names in Compose source information
JavaScript
KT-79050
KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79089
KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode tests
Native
KT-79075
Stuck on Kotlin_getSourceInfo_core_symbolicationKT-76178
LLVM Update: symbol '__ZnwmSt19__type_descriptor_t' missing
Native. Runtime. Memory
KT-78925
Crash SIGABRT on Apple Watch after updating Kotlin to 2.2.0
Tools. CLI
KT-77445
UNRESOLVED_REFERENCE when importing classes from kotlin-stdlibKT-78263
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.psi.impl.PsiSubstitutorImplKT-78318
Unresolved reference when compiling kotlin/JS project on fresh master
Tools. Compiler Plugins
KT-78490
"AssertionError: SyntheticAccessorLowering should not attempt to modify other files" when calling protected open composable with default argumentKT-78038
Make jvm-abi-gen compiler plugin output classloader-friendly
Tools. Gradle
KT-77023
Support creating KotlinJvmAndroidCompilation in KotlinBaseApiPlugin
Tools. Gradle. JS
KT-78504
[2.2.0-RC3] NPM Tasks in 2.2 RCs produce broken/unusable build cache entries
Tools. Gradle. Multiplatform
KT-77466
KMP - testFixturesApi and similar configurations do not affect jvmTestFixtures source setKT-68646
Compose extension's metrics/reports dir should use subdirs based on target
Tools. Gradle. Native
KT-77977
"Unknown hardware platform: riscv64" on JVM project build
Tools. Incremental Compile
KT-78807
Changing ABI fingerprint on non-ABI changes when lambda passed to inlined function
Tools. Kapt
Kotlin 2.2.10-RC2
Changelog
Compiler
KT-79276
Dexing fails with "Cannot read field X because is null" with 2.2.0KT-79442
"Multiple annotations of type kotlin.coroutines.jvm.internal.DebugMetadata": 2.2.0-Beta1 generates broken code with JVM default suspend methods in interfacesKT-78815
Symbol not found: __ZNSt3__117bad_function_callD1Ev
error on iOS 15.5 simulator in Xcode 16.3 after update to 2.2.0-Beta2
JavaScript
KT-79050
KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79089
KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode tests
Native
KT-79075
Stuck on Kotlin_getSourceInfo_core_symbolicationKT-76178
LLVM Update: symbol '__ZnwmSt19__type_descriptor_t' missing
Tools. Kapt
KT-79138
K2: KAPT Java Stub Gen:Unresolved reference
with@kotlin
.Metadata in Java in 2.2.0
Kotlin 2.2.20-Beta2
Changelog
Analysis API. Code Compilation
KT-78382
K2 IR lowering error when interface extends interfaceKT-73201
K2 IDE: Error while evaluating expressions with local classesKT-78164
Evaluator: '@JvmName
' annotations are not recognized in other modules
Analysis API. FIR
KT-72227
SOE from recursive value classKT-68977
K2 IDE: Reference to companion object through typealias in a function call does not workKT-76490
Do not load ast during the contracts phase if no contracts presentKT-72407
FirImplementationByDelegationWithDifferentGenericSignatureChecker: FirLazyExpression should be calculated before accessing
Analysis API. Light Classes
KT-78065
Support "Expose boxed inline value classes" in Light ClassesKT-78835
Find usages of a light constructor from a class with an empty body finds usages of class as well
Analysis API. Providers and Caches
KT-78640
Analysis API: Remove "friend builtins provider" fromFirDeclarationForCompiledElementSearcher
Analysis API. Standalone
KT-78638
Analysis API Standalone: Stdlib builtins are not indexed inSTUBS
deserialized declaration origin mode
Analysis API. Surface
New Features
KT-73473
Provide KaExpressionInformationProvider.isUsedAsResultOfLambda
Performance Improvements
KT-78526
Get rid of redundantcheckValidity
fromwithPsiValidityAssertion
Fixes
KT-78820
K2: ISE "FIR element class FirErrorExpressionImpl is not supported in constant evaluation" through RedundantValueArgumentInspectionKT-75057
Analysis API: Reference to object through typealias in invoke operator call leads to original typeKT-79042
Do not restore KaTypePointer if target kind has changedKT-72421
AA: "KtReference.resolveToSymbols" returns empty list when ASSIGN_OPERATOR_AMBGUITY error is presentKT-63464
AA: KtPsiTypeProvider#asPsiType doesn't substitute kotlin.UnitKT-75913
K2: SymbolLightLazyAnnotation evaluates arguments and replaces them with constantsKT-73184
Analysis API: KaFunctionCallο»Ώ.argumentMapping is unexpectedly deparenthesisedKT-78613
PSI: add binary compatibility checksKT-74013
Analysis API: Cover the API surface with@SubclassOptInRequired
annotationsKT-76614
Move the parser and lexer to a separate moduleKT-78552
KaFunctionValueParameter
is not marked asKaLifetimeOwner
KT-71152
Add back SubclassOptInRequired to classes in KaModule.ktKT-77674
Analysis API: Redundant smart cast to the original type
Backend. Wasm
New Features
KT-65721
K/Wasm: stop unconditionally exporting any main function from the root package
Fixes
KT-73931
WASM: "RuntimeError: illegal cast" with nullable genericKT-65403
[WASM] RuntimeError is thrown instead of ClassCastExceptionKT-79317
[Wasm] Do not throw CCE for ExcludedFromCodegen declarationsKT-66085
K/WASM: Runtime error is uncaught withcatch (e: Throwable)
KT-66072
K/Wasm: improve how exceptions work in JS interopKT-78384
K/Wasm: Incorrect debug info of local declarations in inline function from another fileKT-71533
K/Wasm + K2: no error on KClass::qualifiedName usagesKT-72220
Wasm: Unclear exception in case of missed dependencyKT-71691
No trace on Wasm/JS if an error occurred in initializing global variables in a file with the main functionKT-69570
K/Wasm: JsExport with default parameter value compiles to invalid Wasm
Compiler
New Features
KT-78792
Report warning for redundant return in expression bodyKT-45683
Allow generics in contract type assertionsKT-71244
Incorporate existing@CheckReturnValue
annotation(s) into Kotlin's unused return value checkerKT-32313
Support contracts for operator functionsKT-76766
Warning is missing for wrong subclass checkingKT-65688
Generate when-expressions over final classes via invokedynamic typeSwitch + tableswitch on JDK 21+
Performance Improvements
KT-78672
Consider having FirCallableSymbol.callableId null for local properties / parametersKT-77839
K2: consider not creating CallableId for value parameters / variables / fields
Fixes
KT-79355
Failed to fix the problem of desugaredinc
with new reverse implies returns contractKT-79277
Implies returns contract doesn't affect the return type of the function if it is in the argument positionKT-79271
Implies returns contract doesn't impact exhaustivenessKT-79218
SMARTCAST_IMPOSSIBLE for topβlevel extensionβproperty getter despite returnsNotNull contractKT-79220
returnsNotNull contract ignored on extension function with nullable receiverKT-79442
"Multiple annotations of type kotlin.coroutines.jvm.internal.DebugMetadata": 2.2.0-Beta1 generates broken code with JVM default suspend methods in interfacesKT-79354
IllegalStateException: Debug metadata version mismatch. Expected: 1, got 2 with compiler 2.2.20-Beta1 and stdlib 2.2.0KT-78479
IR lowering failed / Unexpected null argument for composable callKT-77401
[FIR]ParameterNameTypeAttribute.name
doesn't support@ParameterName
with compile-time constant property argumentKT-77986
K2: False negative: "Local classes are not yet supported in inline functions"KT-78843
FIR tree: comments within String concatenation aren't visited in 2.2.0KT-76477
Kotlin/Native: fix compiler performance reporting in sources->klib and klibs->binaryKT-78589
"Class does not have member field" caused by delegation from a Java to Kotlin classKT-79076
'IllegalStateException: Cannot serialize error type: ERROR CLASS: Uninferred type' with Exposed column using recursive generic typeKT-78726
Split runPsiToIr phase into runPsiToIr and runIrLinkerKT-77672
K/N: come up with a fallback strategy for the casts optimization passKT-76585
K2: RETURN_IN_FUNCTION_WITH_EXPRESSION_BODY is not reported inside initializers of local variablesKT-79099
K2: Do not inherit inline modifierKT-76902
Omit type-use annotations from diagnosticsKT-79085
Adding-Xreturn-value-checker=full
to kotlinc causes "error: conflicting overloads"KT-58988
K2: Deprecate exposing package-private parameter of internal methodKT-77199
OPT_IN_USAGE_ERROR is still absent when calling the enum primary constructorKT-72800
K2: java.util.NoSuchElementException when introduce variableKT-79056
Add experimental language version 2.5- [
KT-78351
...
Kotlin 2.2.10-RC
Changelog
Compiler
KT-78501
K2: Missing [ABSTRACT_SUPER_CALL] diagnostics for delegated interface method leads to AssertionError: isCompiledToJvmDefault during IR loweringKT-78479
IR lowering failed / Unexpected null argument for composable callKT-76477
Kotlin/Native: fix compiler performance reporting in sources->klib and klibs->binaryKT-78736
Missing [NOT_YET_SUPPORTED_IN_INLINE] diagnostics because of incorrect context updateKT-77685
"IllegalArgumentException: Sequence contains more than one matching element"KT-76365
K2: Missing ABSTRACT_SUPER_CALLKT-78352
False-positive IDENTITY_SENSITIVE_OPERATIONS_WITH_VALUE_TYPE when comparing with equality operator (==)
Compose compiler
KT-78479
Ensure that default transform affects functions entered through a callKT-78490
Fix visibility for default wrappers of protected methodsb/408492167
Emit parameter names in Compose source information
Native. Runtime. Memory
KT-78925
Crash SIGABRT on Apple Watch after updating Kotlin to 2.2.0
Tools. CLI
KT-77445
UNRESOLVED_REFERENCE when importing classes from kotlin-stdlibKT-78263
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.psi.impl.PsiSubstitutorImplKT-78318
Unresolved reference when compiling kotlin/JS project on fresh master
Tools. Compiler Plugins
KT-78490
"AssertionError: SyntheticAccessorLowering should not attempt to modify other files" when calling protected open composable with default argumentKT-78038
Make jvm-abi-gen compiler plugin output classloader-friendly
Tools. Gradle
KT-77023
Support creating KotlinJvmAndroidCompilation in KotlinBaseApiPlugin
Tools. Gradle. JS
KT-78504
[2.2.0-RC3] NPM Tasks in 2.2 RCs produce broken/unusable build cache entries
Tools. Gradle. Multiplatform
KT-77466
KMP - testFixturesApi and similar configurations do not affect jvmTestFixtures source setKT-68646
Compose extension's metrics/reports dir should use subdirs based on target
Tools. Gradle. Native
KT-77977
"Unknown hardware platform: riscv64" on JVM project build
Tools. Incremental Compile
KT-78807
Changing ABI fingerprint on non-ABI changes when lambda passed to inlined function
Tools. Kapt
KT-77853
K2 KAPT: backend internal error: exception during IR fake override builder
Kotlin 2.2.20-Beta1
Changelog
Analysis API
KT-78187
Synthetic properties not to be shown as callablesKT-72525
K2. red code and KIWA on new-lines in guarded when conditions (with parentheses)KT-61728
Analysis API: optimize AllCandidatesResolver.getAllCandidates
Analysis API. Code Compilation
KT-76457
K2 IDE / KMP Debugger: KISEWA βCannot compile a common source without a JVM counterpartβ on evaluating inline fun from common module inside jvmKT-73084
K2 evaluator cannot resolve local variables standing at the closing brace
Analysis API. FIR
Performance Improvements
KT-78132
Do not check FirElementBuilder#tryGetFirWithoutBodyResolve optimization for already resolved declarations
Fixes
KT-72357
Implement partial body resolutionKT-77629
K2: NPE: "org.jetbrains.kotlin.fir.java.declarations.FirJavaTypeParameter.performFirstRoundOfBoundsResolution"KT-76855
Analysis API:KaType.asPsiType
returnsnull
for a local inner class in dependent analysis testsKT-72718
ImplicitReceiverValue.createSnapshot creates invalid FIR if receiver is smart-castedKT-76811
Analysis API:resolveToFirSymbol
finds aFirPropertySymbol
for aKtScript
in dependent analysisKT-73586
[Analysis API] AddlazyResolveToPhase(STATUS)
before accessing modifiers of membersKT-71135
AA: exception from sealed inheritors checker whenanalyzeCopy
KT-75534
K2 AA: "Containing declaration should present for nested declaration class KtNamedFunction" with dangling annotation on top-level anonymous functionKT-75687
K2: local variable doesn't get to the do-while scopeKT-56543
LL FIR: rework lazy transformers so transformers modify only declarations they suppose to
Analysis API. Infrastructure
KT-76809
Analysis API: Dependent analysis tests frequently work with the original element instead of the copied element
Analysis API. Light Classes
KT-78076
DLC: KotlinDeclarationInCompiledFileSearcher missed accessors if types are boxedKT-77569
SLC: annotation missing from generated no-args constructorKT-75182
K2 AA. False positive red code "Unresolved reference" to a Kotlin method in Java when Kotlin uses a value class with@JvmOverloads
KT-77564
Constructor with JvmOverloads and value class shouldn't mark regular constructors privateKT-77505
K2: find usages on java accessor methods do not detect kotlin property accessor usagesKT-76789
Annotation resolve shouldn't search through non-class membersKT-76907
Wrong equality between repeatable annotation and container
Analysis API. Providers and Caches
KT-74907
Analysis API: Apply platform-based library module content restrictions consistentlyKT-77578
Analysis API: Performance degradation ofKaBaseResolutionScope.contains
after introduction of library restriction scopesKT-77605
AA: Leaking KaDanglingFileModule through IdeKotlinPackageProviderKT-62474
Analysis API: Improve mergeability and performance of custom search scopesKT-77022
Get rid of ExpectBuiltinPostProcessor workaroundKT-77248
Delegation ofJavaModuleResolver
is restricted toCliJavaModuleResolver
KT-76850
LLFirLibrarySession cannot be cast to LLFirResolvableModuleSessionKT-76952
Analysis API:when
exhaustiveness analysis fails for sealed classes in dangling filesKT-72390
Kotlin project full of red code
Analysis API. Stubs and Decompilation
KT-77496
Support HAS_MUST_USE_RETURN_VALUE metadata flags in FirStubBasedMemberDeserializerKT-77778
Function receivers doesn't have annotationsKT-77777
Receiver annotations shouldn't be present on typesKT-77538
Support default property accessors with annotationsKT-77763
Decompiled stubs miss inline modifier for property accessorsKT-77309
Decompiled property from annotation constructor with default value should have a constant initializerKT-77168
Prefer DataInputOutputUtil for serialization/deserializationKT-77117
Flaky WRONG_ANNOTATION_TARGET diagnosticKT-76791
Function signature types are deserialized inconsistentlyKT-76947
Support functional types with context parameters
Analysis API. Surface
New Features
KT-77278
Implement psi-basedKaFirKotlinPropertyKtPropertyBasedSymbol#hasBackingField
KT-70770
KaLocalVariableSymbol: supportisLateInit
Fixes
KT-75913
K2: SymbolLightLazyAnnotation evaluates arguments and replaces them with constantsKT-78278
ISE: FIR element "class org.jetbrains.kotlin.fir.expressions.impl.FirErrorResolvedQualifierImpl" is not supported in constant evaluation at org.jetbrains.uast.kotlin.internal.FirKotlinUastConstantEvaluator.evaluateKT-73327
Cover all psi inputs with scope validity assertionsKT-71876
Support storing parameter names inKaFunctionType
KT-77738
AA: inconsistentKaType.allSupertypes
regarding multiple iterationsKT-73723
K2 AA, KaFirVisibilityChecker: protected member of superclass is not visible from anonymous objectKT-78057
[Analysis API, K2] Context parameters are not resolved in KDocKT-73758
K2 Mode: "KaEvaluator.evaluate" does not work for simple arithmetic expressionsKT-72301
K2 AA.PSI should present for declaration built by Kotlin code
on property access syntax of generic Java getter through Kotlin subclassKT-77730
K2: Unable to get a light PSI for a nested annotation used with fully-qualified nameKT-73216
K2: unresolvable references in type parametersKT-71794
Analysis API: Types with errors have unresolved qualifiers in lambda parameters positionKT-65846
Support parameter names in functional type renderingKT-76738
K2 AA: rendering constructor of sealed class inserts protected modifierKT-77515
KaTypeProvider#receiverType
should be more tolerant to an error codeKT-77333
K2 AA: KaFirTypeProvider.getType: InvalidFirElementTypeException: For TYPE_REFERENCE with textI
, unexpected element of type: FirSuperReceiverExpressionImpl foundKT-76044
K2 AA: isFun is true for restored symbol of Java interface with several methodsKT-77264
KaTypeProvider#type
should be more tolerant to an error codeKT-77282
KaPropertySymbol: supportisDelegatedProperty
for librariesKT-77254
K2 AA: expectedType doesn't provide anything for parameter default valueKT-74777
KaVariableSymbol.hasBackingField returns incorrect result for librariesKT-77280
RenameKaPropertyAccessorSymbol#isCustom
toisNotDefault
KT-77210
Analysis API: `scopeContex...
Kotlin 2.2.0
Changelog
Analysis API
KT-73337
Migrate analysis sources to new IR parameter APIKT-75880
K2 Mode: Typealias reference resolves to the underlying class in KMP projectKT-74246
KaVisibilityChecker.isVisible is inefficient with multiple calls on the same use-siteKT-57733
Analysis API: Use optimizedModuleWithDependenciesScope
s in combined symbol providersKT-69535
Redesign 'containingSymbol'KT-69950
Analysis API: IntroduceisSubtypeOf(ClassId)
KT-68393
Analysis API: RenameKaClassLikeSymbol. classIdIfNonLocal
toclassId
KT-62924
Analysis API: rename KtCallableSymbol.callableIdIfNonLocal -> callableId
Analysis API. Code Compilation
KT-75502
K2: IDEA hangs when evaluating inside kotlin-stdlib modules in the Kotlin projectKT-73077
Evaluation of inline functions is broken inside Kotlin project and Amper module in Idea sourcesKT-73936
K2: CyclicInlineDependencyException: Inline functions have a cyclic dependency in evaluatorKT-74582
InterpreterMethodNotFoundError when trying to evaluate simple expressions after recent fixesKT-74524
Compilation exception with incorrect JvmName annotation argumentsKT-74443
Compilation peer collector ignores inline property accessors
Analysis API. FIR
New Features
KT-73493
Support context parameters
Performance Improvements
KT-75790
Experiment with increasing DEFAULT_LOCKING_INTERVAL timeKT-72159
LLFirCompilerRequiredAnnotationsTargetResolver: consider rewriting it to use honest jumping locks
Fixes
KT-76331
Cleanup FileStructureElement for classesKT-73117
K2 AA: Exception "Setter is not found" when val has a setter without bodyKT-76540
K2: Missing library dependency on Android SDK from androidx.activity-1.8.2 causes LiveEdit failuresKT-73266
K2. "Declaration should have non-local container" with unclosed annotation on top-level functionKT-76432
JavaClassUseSiteMemberScope: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImplKT-76217
K2 AA: "No fir element was found for KtParameter" with multiple context parameter listsKT-74740
Highlighting is broken after the built-in serialization refactoringKT-76366
ContextCollector: annotations on class members don't have the class as implicit receiverKT-76352
ContextCollector: wrong class annotation context in BODY modeKT-76341
ContextCollector: support dangling modifiersKT-76332
"Declaration should have non-local container" for declaration inside file annotationKT-76115
DisableFirElementBuilder#getFirForElementInsideAnnotations
optimization for files, classes and scriptsKT-76347
ContextCollector: avoid resolution for enum entry annotationsKT-76272
Cleanup AbstractFileStructureTestKT-75542
K2 AA: "FirDeclaration was not found for class KtNamedFunction, fir is class FirErrorExpressionImpl" for unclosed annotation on member functionKT-73719
K2. "FirDeclaration was not found for class KtDestructuringDeclaration, fir is class FirBlockImpl" on incorrect chain callKT-72908
K2 Analysis API: "FirDeclaration was not found for class org.jetbrains.kotlin.psi.KtFunctionLiteral" with non-local destructuring declaration without initializer beforeinit
blockKT-75532
ContextCollector: scope for an anonymous function type parameter contains regular parametersKT-74508
FirElementBuilder#findElementInside
should reuse logic fromKtToFirMapping#getFir
KT-73066
[LL] Enable low-level-api-fir-native even with the disabled native partKT-75132
Investigate failures of sandbox diagnostic testKT-75130
Set up LL FIR tests for sandbox test dataKT-73386
Standardize LL FIR test for compiler test dataKT-75125
ISE βValue classes cannot have 0 fieldsβ on instantiating inline class without fieldsKT-75179
ContextCollector: support error propertiesKT-74632
K2: ISE FirLazyDelegatedConstructorCall should be calculated before accessingKT-74818
K2 AA: "FirDeclaration was not found for class KtTypeParameter, fir is null" with TYPE_PARAMETERS_NOT_ALLOWED on anonymous functionKT-73183
Support context parameters in ContextCollectorVisitorKT-60350
K2 IDE: top level destructuring RHS should be resolvableKT-74794
K2: FirLazyExpression should be calculated before accessing with context parameter and implicit return typeKT-72938
Get rid of KaFirAnnotationListForReceiverParameterKT-73727
Exception in implicit type resolution
Analysis API. Infrastructure
KT-74917
[Analysis API, Test Framework] Introduce a way to acquirePsiFile
for a givenTestFile
inKtTestModule
Analysis API. Light Classes
KT-73405
Get rid of KtElement#{symbolPointer, symbolPointerOfType} API usagesKT-75391
Reduce the amount of psi-based logic in light classesKT-70001
SLC adds@Override
with zero text offset onoverride
memberKT-75755
K2. False positive red code on vararg parameters in Kotlin class with@JvmOverloads
when called from JavaKT-75397
Constructors and functions with non-last vararg parameters are treated as varargsKT-74868
Support context parametersKT-74733
SymbolPsiLiteral.text == value for Java constantKT-74620
Delegated functions with value classes are present in light classesKT-74595
Static functions with value classes are present in light classesKT-74284
Synthetic data class methods using value class types present in LC
Analysis API. Providers and Caches
Performance Improvements
KT-62115
Analysis API: Package providers are not cached per search scopeKT-74463
Analysis API:LLNativeForwardDeclarationsSymbolProvider
queries its cache even when theClassId
cannot represent a native forward declaration
Fixes
KT-74541
Analysis API: Include files generated by resolve extensions inKaModule
content scopesKT-64236
Analysis API: Introduce a separate module for fallback dependencies of library source modulesKT-74090
Analysis API: Support dumb mode (restricted analysis)KT-63780
Analysis API: Invalidate resolvable library sessions when binary library modules are modifiedKT-72388
KaFirStopWorldCacheCleaner: Control-flow exceptionsKT-74943
Analysis API: ReplaceKotlinGlobalModificationService
with simpler global modification event publishing and listener-based modification trackersKT-70518
K2: Analysis API: Access indices outside ofConcurrentMap
computation in...
Kotlin 2.2.0-RC3
Changelog
Compiler
KT-77301
False positive Context Parameter resolution when using DslMarker
JavaScript
KT-78073
K/JS: KProperty from local delegate changes after another delegate is invoked
Klibs
KT-78168
K/N: "IndexOutOfBoundsException: Index 3 out of bounds for length 3" for iOS build with Kotlin 2.2.0-RC2
Kotlin 2.2.0-RC2
Changelog
Backend. Wasm
KT-77622
K/Wasm: investigate CMP crash on mobile Safari
Compiler
KT-77220
Annotation with EXPRESSION is not allowed on lambdas in Kotlin 2.2.0
Compose compiler
b/420729503
Avoid copying@Deprecated
annotations on Compose compiler stubsb/417412949
Emit fake line number forskipToGroupEnd
branch
IR. Tree
KT-77508
K/JS and K/Native CompilationException Wrong number of parameters in wrapper
JVM. Reflection
KT-77663
Reflection: java.util.ServiceConfigurationError: "module kotlin.reflect does not declareuses
" when using kotlin-reflect in modular mode
Tools. CLI
KT-77445
UNRESOLVED_REFERENCE when importing classes from kotlin-stdlib
Tools. Gradle. Multiplatform
KT-77404
The kotlin-stdlib and annotations are missing from commonTest dependencies with 2.2.0-Beta1
Kotlin 2.2.0-RC
Changelog
Compiler
Fixes
KT-77259
Confusing message forANNOTATION_WILL_BE_APPLIED_ALSO_TO_PROPERTY_OR_FIELD
KT-77219
"@Composable
annotation is not applicable" on vararg@Composable
() -> Unit in Kotlin 2.2.0KT-77397
Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL when calling declaration with contextual function type in signatureKT-74470
NSME on calling in runtime internal constructor of value class with default arg from testsKT-77137
K2: Controversial behavior allows resolving annotation arguments on a companion inside itKT-77150
Native: compilation fails with an assertion errorKT-76357
K2: a nested class annotation observes member declarations of the outer classKT-77283
Binary compatibility of FirDeclarationCheckerKT-75457
Native: cache machinery uses stdlib cache with default runtime options even if custom runtime options are supplied when partial linkage is disabledKT-76898
K2: ClassCastException when data class shadows supertype'scomponentX
method with wrong typeKT-77078
K2: anonymous object is wrongly allowed to implement interfaces by unsafe DelegationKT-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 granularityKT-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 classesKT-42305
KJS / IR: "Class constructor is marked as private"@JsExport
produces wrong TS code for sealed classesKT-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.14KT-76139
Run integration tests against Gradle 8.14KT-76137
Compatibility with Gradle 8.14 releaseKT-76797
KGP: StdlibDependencyManagementKt.configureStdlibVersionAlignment() triggering eager configuration realizationKT-77288
Using 'KotlinJvmOptions' is an error - Gradle sync issue when using 2.2.0-Beta2 with Android Gradle PluginKT-77035
A compiler diagnostic isn't reported when its severity is set to warning with GradleKT-73142
Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilderKT-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