Changelog
Updated vulnerable third-party dependencies:
- baseline-browser-mapping: 2.10.0 -> 2.11.27
- browserslist: 4.28.1 -> 4.29.3
- brace-expansion: 1.1.12 -> 1.1.18
- brace-expansion: 2.0.2 -> 2.1.4
- fast-uri: 3.1.0 -> 3.1.8
- js-yaml: 4.1.1 -> 4.3.2
- launch-editor: 2.13.1 -> 2.14.1
- nanoid: 3.3.11 -> 3.3.18
- socket.io-parser: 4.2.5 -> 4.2.7
- webpack-dev-server: 5.2.3 -> 6.0.0
- ws: 8.18.3/8.19.0 -> 8.20.1/8.21.0
- GraalVM Community JDK 25.0.3 -> Oracle GraalVM JDK 25.0.5.1
Analysis API
Fixes
KT-87460Flaky (Embeddable)SwiftExport testsKT-60884Analysis API: Improve standalone mode project model creationKT-61775Analysis API: KtKClassAnnotationValue lacks complete type informationKT-69055Analysis API: StabilizeKaScopesKT-68884Analysis API: Rename/deprecate/remove declarations as part of StabilizationKT-65215Analysis API: Distinguish APIs for Analysis API users and platformsKT-68857Analysis API: Refactor annotationsKT-68341Analysis API: Expanded function types from libraries don't have an abbreviated typeKT-68462Analysis API: Integrateproject-structuremodule intoanalysis-apiandanalysis-api-platform-interfaceKT-67786Analysis API: Implement improvedKtTypehierarchy and designKT-60484Analysis API: add support for KtType pointers similar to KtSymbolPointerKT-65417K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source setsKT-68896Support VirtualFile binary dependency inputs to Analysis API modulesKT-88945Analysis API: annotation resolution drops a class id when a source annotation shadows a library one
Analysis API. FIR
Performance Improvements
KT-60240K2: optimize FirElementBuilder#getOrBuildFirForNonKtFileElement forKtTypeReferencecaseKT-76375ContextCollector: terminate search if no elements were found with a designationKT-86758Don't require body resolution to obtain an explicit backing fieldKT-75496Doesn't resolve the entire designation path to the body phase for diagnostics
Fixes
KT-85627AA: LLFlightRecorder initialization fails on runtimes without jdk.jfrKT-88111K2: Analysis API: make FileStructure element computation fully lazyKT-85410LLFirTypeTargetResolver: add more type guardsKT-86185Analysis API: MakeFirDesignationinternal by removing the leak throughUsualClassTypeQualifierBuilderKT-64899K2: PsiRawFirBuilder forces AST loading for scriptsKT-80721K2 AA. "FirDeclaration was not found for class KtTypeParameter, fir is null" with generic type parameter in object expressionKT-60609K2 IDE: Navigation to super class of annotation opensAnyinstead of written super typeKT-77041Expected is FirResolvedDeclarationStatus, but was FirDeclarationStatusImplKT-79057Fix all// IGNORE_PHASE_VERIFICATION: invalid code inside annotationsdirectivesKT-75470ContextCollector: potentially incorrect scope for super type callKT-81100Support jvmTargetProvider in low-level analysis APIKT-74654K2 Analysis API: InvalidFirElementTypeException with annotated non-local destructuring declarationKT-62892K2 IDE. Java outer class from other module is not resolved when nested class is accessed with fq name in a type positionKT-72660ISE: Recursive update at org.jetbrains.kotlin.analysis.low.level.api.fir.caches.FirCaffeineCache.getValueKT-69726FP errors on declaringfun clone()in actual enum in not-jvm source-setKT-69727K2 IDE. Wrong error in the editor on callingclonefunction of actual enum instance in non-jvm platformKT-87572Symbols from companion blocks have dispatchReceiver in stub-based versionKT-87651[Analysis API] Unexpected FIR status exception on SAM interfacesKT-88962False negative [AMBIGUOUS_ANNOTATION_ARGUMENT] diagnostic in some corner cases
Analysis API. Infrastructure
Fixes
KT-87998Move out Standalone components from the 'kotlin-analysis-api-surface' and 'kotlin-analysis-api-implementation'KT-87672Eliminate class duplication in the Analysis API JARsKT-88371Optimize symbol light classes testsKT-87607Test Federation: Review domain Analysis API Smoke & Contract testsKT-89119Enforce KaInternals prefix name schemaKT-89711test-data-manager is incompatible with Isolated ProjectsKT-87529Test Data Manager: introduce a separate task for checksKT-87593Migrate Analysis API tests on JDK 11KT-86787Stop publish analysis-api-fe10-for-ideKT-88404Merge the decompiler text and stubs into one test caseKT-84914Do not publish analysis-api-test-framework
Analysis API. Light Classes
Fixes
KT-89204SLC: False positive "unresolved reference" in Java for interface companion block membersKT-84373Implement PsiMethod#isDefaultConstructorKT-89073SLC:@JvmOverloads+@JvmExposeBoxed("bar") methods are exposed with the original nameKT-89322UAST: NPE accessing containingFile of UParameter for mapped collection methodKT-89316SLC:DefaultImplslight class exposes@JvmStaticmembers of the interface companion objectKT-88498Support multi-field value classes in light classesKT-70427SLC: non-abstract interface method generated as default with-jvm-default=disableoptionKT-87399LightClassUtil.getLightClassPropertyMethods returns wrong setter when JvmName annotation is usedKT-67711K2: Pointer already disposed from SLC/AIKT-65385K2 IDE: Light classes incorrectly exposeCompanionclass and the corresponding static field if the companion object is generated by a compiler pluginKT-88805SLC:@JvmInlinevalue classis treated asPsiClass#isValueClass`KT-88861Value classes / JvmExposeBoxed: internal method from value class is shown as valid call on java side but cannot be compiledKT-88879Value classes / JvmExposeBoxed: false-negative resolve for overridden exposed functionsKT-57537SLC: propagate default parameter value from (@JvmOverloads)expectdeclarations toactualdeclarations
Analysis API. PSI
KT-88443Advance DeprecationLevel for PSI declarations deprecated in 2026.2 and earlierKT-74070Cover the Kotlin PSI with KDocsKT-89846PSI: Kotlin overrides of standardPsiElementmutation methods throw IllegalStateException without KtPsiMutationServiceKT-80780KtPsiUtil#getEnclosingElementForLocalDeclaration should return KtClassBody for enum entries membersKT-85052Move mutation methods out of the Kotlin PSIKT-87819UseScope of private interfaces is incorrectKT-88788Refine the new resolution API (PSI-part)KT-88925Restrict theKtElementhierarchy with@SubclassOptInRequiredKT-89032Missing PSI utilities for companion blocks
Analysis API. Providers and Caches
KT-89816Analysis API tests: low-memory cache cleanup invalidates sessions in the middle of a testKT-71359Perform validity checks before session acquisitionKT-87680Analysis API: LL FIR sessions contain redundantBuiltinTypesinstancesKT-86402False positive MISSING_DEPENDENCY_SUPERCLASS when using Scala case class in KotlinKT-87231Analysis API: Fallback dependencies must have a binary-only base content scopeKT-77194Analysis API: Move union and intersection scope merge strategies to the Analysis API
Analysis API. Standalone
KT-61404Analysis API: implement proper library publishing structureKT-89902Analysis API Standalone: JavaPsiFacade doesn't find Kotlin classes from binary librariesKT-89242Analysis API Standalone: KLIB/JAR file handles remain open after session disposalKT-85112AA does not see packages from unpacked klibsKT-84851Analysis API Standalone: 75% of CPU time spent in StringsKt.split via trie-based library scopesKT-88362PsiMethod.findSuperMethods()always returns an empty array
Analysis API. Stubs and Decompilation
New Features
KT-10793Improve decompiled text for annotationsKT-85756Support annotation arguments in the decompilerKT-87857Support strict equals in stubs
Performance Improvements
KT-88067Implement stub-based initializer for constant propertiesKT-71787PsiRawFirBuilder.Visitor#visitStringTemplateExpressionforces AST loadingKT-79397Make KtUnaryExpression stub-basedKT-79396Make KtBinaryExpression stub-basedKT-88060Make KtParenthesizedExpression stub-based
Fixes
KT-89376Rethink decompiler dependenciesKT-88772Refine stubs surfaceKT-81203Get rid of deprecated usage at ClsClassFinder.isKotlinInternalCompiledFileKT-80758Consider to drop KotlinClassOrObjectStub#isLocalKT-77096Implement more stub-based annotation argumentsKT-52806Store type in callable stubs when callable have implicit type and trivial initializerKT-88500Support multi-field value classes in Analysis API stubs / decompilerKT-78356Migrate stubs from stub element type to stub factoriesKT-88984compiler-common and analysis-api-impl-base cyclic depend on each other
Analysis API. Surface
New Features
KT-84255Expose possible smart casts from ContextCollector in KaScopeContextKT-88521Analysis API surface: support "Strict equals" (equality bound types) language featureKT-88496Support multi-field inline classes in Analysis API SurfaceKT-87311Propagate psi from generated declarations to KaSymbolsKT-78862Provide KaSymbol -> PsiElement APIKT-86610Rework KaDiagnosticProvider to be more flexibleKT-88985Refine the new resolution API around error handlingKT-68881Analysis API: IntroduceKaType.classIdKT-85384Provide use-site-aware API for Light Classes
Fixes
KT-88129AdvanceDeprecationLevelfor declarations deprecated in 2026.2 and earlierKT-87552Compiler-internal types leak into the public Analysis API surfaceKT-53669Analysis API: redesign KtSymbolOrigin to distinguish kotlin/java source/library declarationsKT-55124Design common ancestor for KtValueParameter and KtReceiverParameterSymbolKT-68882Analysis API: RefactorKaSymbolsKT-60483Analysis API: add isTailrec property to KtFunctionSymbolKT-77280RenameKaPropertyAccessorSymbol#isCustomtoisNotDefaultKT-83199Clarify API around extension pointsKT-66192Analysis API: Improve render customizabilityKT-82176KaFirUsualClassType has incorrect type argument for generic local class in generic functionKT-73570Merge implementation ofKaExpressionTypeProvider.returnTypewithKaCallableSymbol.returnTypeKT-81264K2 AA:KaValueParameterSymbol.hasDefaultValueis false for overriding or actual functionsKT-73946Analysis API: Add a way to navigate from "KaPropertySymbol" to "KaValueParameterSymbol" for primary constructor propertiesKT-87343AA: hasDefaultValue is incorrect for parameter of actual constructorKT-87338Drop KaTypeParameterOwnerSymbolKT-69959fakeOverrideOriginalshould support value/type/receiver parametersKT-87578Explicitly split implementations and APIs in symbolsKT-87924Consider droppingKaType.is*TypeutilitiesKT-87564Analysis API: nested type alias qualifier resolves to expanded type ownerKT-86591Rethink how the context parameters feature could be integrated into the Analysis API SurfaceKT-54508Re-design 'javaGetterName' and 'javaSetterName'KT-75549DeprecateKaTypeProvider#collectImplicitReceiverTypesKT-87210KaSubstitutor.Empty shouldn't be a classKT-63221K2: Analysis API: reworkgetDiagnosticsForElementAPIKT-85528Move diagnostic classes out of analysis-api-firKT-88489resolveToCallCandidates throws ClassCastException for callable reference expressions resolveToCallCandidatesKT-88645Stabilize KtResolvable(Call)KT-82397KaFunctionTypeshould offer context parameter types, not context receiversKT-73195AA FIR: missing annotations on function literalKT-89030[Analysis API] GeneralizeKaFirNestedInLocalClassFromCompilerPluginSymbolPointerKT-87557'Analysis API Public API Checks' run configuration should include the artifacts checksKT-88767Refine the new resolution APIKT-89175Add contracts to the new resolution utilitiesKT-84186Unresolved annotationClassIdreturns ""
Backend. J2KLIB
KT-88163Allow to disable firAggressivePrunner for Jklib
Backend. Wasm
New Features
KT-88027K/Wasm: Exportcabi_reallocfunction from stdlib to support components
Performance Improvements
KT-91749Kotlin/Wasm: cos is ~47% slower in 2.5.0-RC than in 2.4.21KT-88469K/Wasm: consider inlining suspendCoroutineUninterceptedOrReturn and getCoroutineContext intrinsics on 2nd Stage
Fixes
KT-89394[Wasm] stop creating of CoroutineImplStackSwitching at the call cite of suspendCoroutineUninterceptedOrReturnKT-86242K/Wasm: deprecate and prohibit usingwasmExportsKT-82950K/Wasm: stop providingwasmExportsinto generated JS filesKT-87862K/Wasm: introduce a separate diagnostic ID for companion object inside external interfaceKT-87125K/Wasm: share a common base class for all suspend functionsKT-66089K/WASM: assertSame failed in teststatic_smallIntIdentity.ktKT-89657[Wasm] Insvestigate performance issues with primitive box cachingKT-91167K/Wasm: suspend lambda containing a suspend call triggers unrelated file-property initializationKT-89267K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastExceptionKT-87740K/Wasm: Incorrect wasm for codegen/box/basics/kt75483.ktKT-90107Kotlin/Wasm: empty string passed to a component traps in cabi_reallocKT-90119K/Wasm: ArenaLikeAllocator.allocationsToFree is only cleared on freeAllComponentModelReallocAllocatedMemory()KT-89547[Wasm] add test config for running stack switching with incremental compilationKT-73452K/Wasm: turning on range checks by defaultKT-87710[K/Wasm] initialization order of companion objects from super types differs from JVMKT-88291K/Wasm: Unsigned integer division by zero throws RuntimeError instead of ArithmeticExceptionKT-86207k/wasm: Add box tests/support for multi-value value classes and callable ref mergingKT-89345[Wasm] look into and unmute some CallableReferences benchmarks for Single Module ModeKT-89445Wasm: non-thread-safe instruction cache causes ClassCastException during parallel compilationKT-89315K/Wasm Standard Library Tests: Assertions are not enabledKT-89548[Wasm] clean up type codegen for stack switching and avoid leaking too many continuation types to non-stdlib modulesKT-88235K/Wasm: Grouping test infra causes d8: error reading module error on Windows (path length problem?)KT-87109K/Wasm: Companion block initializer block fails in multi-module scenarioKT-87329K/Wasm: child companion block static initializer runs before parent initializer in single-module modeKT-87128K/Wasm: investigate possible optimization of suspend "helper" functionsKT-87687Investigate whether unboxing needed when accessing suspendResult in transformed doResume for suspend functionKT-87583Wasm IC cache is not invalidated when kotlin.wasm.compilationMode changes causing IndexOutOfBoundsException in WasmDeserializerKT-88366[Wasm] mute failing coroutines stack switching test via WASM_IGNORE_FOR directiveKT-88387K/Wasm: DWARF debuginfo accidentally swaps files and foldersKT-79411K/WasmJs: "Can't link symbol kotlin.js/js|js(kotlin.String){}[0]"KT-83171K/Wasm: Investigate import.meta usage in mjs filesKT-85772K/Wasm: implement companion blocks and extensionsKT-88543K/Wasm: Automatically clean test output by defaultKT-88434K/Wasm: JS-to-Kotlin closure converter is shared between different external function types with the same JS-erased signature, injecting a wrong castKT-88808K\Wasm: separate CoroutineImpl and CoroutineImplStackSwitchingKT-87746K/Wasm: Investigate if it is possible to enable floating point const folding on Wasm backendKT-87742K/Wasm: initialization of properties with default value different from JVMKT-89009[Wasm/MMCW] Compilation fail with exception on simple projectKT-89198K/Wasm: invalid Wasm code(ref.cast to wrong type) for bound reference to inner-class constructor
Compiler
New Features
KT-87767Add JVM target bytecode version 27KT-79656Useorg.jetbrains.annotations.UnmodifiableViewand/ororg.jetbrains.annotations.Unmodifiableto infer read-only types for Java entitiesKT-89201Implement "Strict equality for structural classes"KT-87345Swift Export: Support proper exception throwing from sync bridges in cross-language inheritanceKT-80943Context-sensitive resolution fails to look further than a typeKT-89096Rich Errors: Parser & PSIKT-86868Update checkers to supportlateinit valKT-86124Set attributeequalityBoundTypeto parametersKT-89098Rich Errors: ResolutionKT-89103Rich Errors: CheckersKT-89097Rich Errors: FIR TreeKT-2264Emit a warning about ignored (unused) binary operation resultKT-80964Improve error messages for compile-time constantsKT-87412Kotlin/Native: use JVM-like class initialization scheme with CompanionBlocksAndExtensionsKT-83040Collection literals: ensure normal interaction with CFGKT-85925Native: rework virtual trampolines machineryKT-68819Don't report "no corresponding expect/actual declaration" when signature contains error typesKT-58562More concise error for "Incompatible classes were found in dependencies"KT-81676Improve error reporting for underscores as type parametersKT-87422Smart casts inside the body of strictequalsKT-86127Add smart casts based on strict operator equalsKT-87420SetequalityBoundTypeattribute for generated equals in data and value classesKT-87417Generate prologue of strict equals in Fir2IrKT-87498Strict equals x interface delegationKT-87418Incompatible==/!=checks based on@EqualityBoundKT-86129StrictequalschecksKT-87419(De)serialize attribute set for strictequalsKT-88415Java type enhancement: support org.chromium.build.annotations nullability annotations as JSpecify equivalents
Performance Improvements
KT-91549Slowdown in compose benchmarks in Float.fromBitsKT-88352JVM: redundantCharacterbox/unbox andRef.IntRefwhen a bound callable reference is passed to an inline function from within another inlined lambdaKT-89131JVM: Hoist ResultKt.throwOnFailure out of SuspendLambda.invokeSuspend switch casesKT-87570Kotlin/Native: improve RemoveRedundantCallsToStaticInitializersPhaseKT-89840Native: bad incremental clean build performanceKT-57995Extra anonymous class is created for lambda after upgrading from Kotlin 1.6.10 to 1.7.20KT-86022K2 frontend hangs in approximateToSuperTypeWithRecursionPreventionKT-66469Long compilation with mockk importKT-83068Investigate long compilation times with many generics & overloadsKT-69758FastJarFS - avoid copying data on inflating (JDK 16+)KT-87896Make check for JvmFieldApplicabilityProblem.NOT_PUBLIC_VAL_WITH_JVMFIELD not quadraticKT-87952Bound receiver wrapped in a cast is needlessly stored in a$receiverfield for property reference delegationKT-87033[Native] Optimize dumpObjcSelectorToSignatureMapping to execute during frontend phase, bypassing IR linkingKT-88435Kotlin/Native: Avoid redundant filtering in DevirtualizationAnalysisKT-88383K/N CallGraph: Eager check before pushing elements onto the stackKT-85899Performance problem around the second incorporation kindKT-52283Never ending type inference while compiling Kotlin code with lots of self pointing genericsKT-49139NI: EnumMap constructor call in Kotlin source causes OutOfMemoryError during compilation and analysis in IntelliJ IdeaKT-615Optimize instanceof check for nullable typeKT-89224Significant performance drop in MT intellij (checkers)
Fixes
KT-87295Enable Return Value Checker by defaultKT-86086MakeIntrinsicConstEvaluationfeature stableKT-89646Add JVM target bytecode version 28KT-81760Kotlin/Native: incosistent handling of clashing declarationsKT-61582Kotlin/Native: deprecate and remove -generate-worker-test-runnerKT-80005Kotlin/Native: remove eager GlobalData initializationKT-86132Drop support of language versions 2.0 and 2.1KT-84904Alpha release of Multi-Field Value ClassesKT-86131Deprecate language version 2.2KT-90589K/N: Debug static framework with a Kotlin subclass of NSObject does not link without -dead_strip: undefined "_kfun:platform.darwin.NSObject#objc:*-impl"KT-86740K/JS: IllegalStateException "Serialization of IrErrorType is not supported" when type variable is inferred into empty intersectionKT-91524Callable references to declarations with context parameters get the "unsupported" error while being available through the compiler argumentKT-90233Compiler: allow inline value modifier combinationKT-89985InnerClasses entries lack ACC_IDENTITY with -Xjvm-enable-preview on JVM target 28KT-84562Get rid of usages of@K1Deprecation-annotated declarations in JVM backendKT-89687[JVM] SpecialBuiltinsMapping.getDifferentNameForJvmBuiltinFunction computes JVM signature of the sub-declaration instead of the overridden built-inKT-88455AssertionError "Inconsistent target list for lambda annotation" when Java annotation applied to lambdaKT-89698JVM:@Throwsis copied onto a bridge only when the overridden method is compiled from source, so incremental and clean builds produce different class files (JvmEnhancedBridges, 2.4.0)KT-89504VerifyError: Bad type on operand stack with startCoroutine on smart-casted nullable suspend function typeKT-87922K1FakeDescriptorsForReferencesKt classes duplicated between kotlin-scripting-compiler-embeddable and kotlin-build-tools-implKT-87983CCE on member extension property delegated to bound property referenceKT-87499ClassCastException "Float cannot be cast to Unit" when a suspend function's result is discarded in a when-branchKT-89915JVM: ClassCastException 'kotlin.Result cannot be cast to ...' in an indy SAM-converted lambda whose Java SAM parameter is@NotNullKT-89653Native: failing lldb tests with state checker enabledKT-90235Compiler (JVM): drop requirement of@JvmInlinefor inline value classKT-90234Compiler: don't report inline modifier is deprecated in combination with valueKT-89933Incorrect highlighting of a KDoc with a code block with commentsKT-90321K2 IDE: "Multiple plugins generated nested class with same name Companion" floods the IDE log for a class with@Slf4j(Lombok) and@SerializableKT-91112Type inference: reified Enum inferred as Nothing for a function-reference extension call since Kotlin 2.5KT-90707Parser: "Expecting ';' after the last enum entry" when an enum entry named error has arguments or a bodyKT-90315Value classes resolved first as a supertype are treated as identity classesKT-87569Support Valhalla for Kotlin Inline and Full Value ClassesKT-89433Frontend: Metadata of abstract/sealed full value classes declares equals/hashCode/toString that the JVM backend does not generateKT-88589Full Value Classes: irrelevant SMARTCAST_IMPOSSIBLE for value class implemented in another moduleKT-86556Account for CSR in compiler required annotations transformerKT-90051K/N: IrConstructorCallImpl is not expected crash in file lowering when@Entityuses@Indexwith vararg + default parametersKT-88316K/N: StackOverflowError in CastsOptimization when two nullable local variables are assigned to each other across nested loopsKT-88007Don't reportequals(Any?)in companion blocks of interfacesKT-87437Restrict interface companion block propertiesKT-82676Replace reflection-based RuntimeFeatureToFlagMap with code generationKT-87825Implement new frontend rules for companion blocks in interfacesKT-88408[IR] Consider eliminatingModuleDescriptorfromIrActualizermodule diagnosticsKT-87505False positiveINVALID_VERSIONING_ON_VALUE_CLASS_PARAMETERon value class secondary constructor with@IntroducedAtKT-85879Get rid of second incorporation kind in inferenceKT-87777K/N IC: "Undefined symbols for architecture" when an inherited open method becomes finalKT-89892[K/N] latin1Strings binary option is ignored with cachesKT-87904Incorrect $default method/constructor signatures when@JvmInlinevalue class parameter type is absent from compilation classpathKT-89980K2 loads full value classes from klibs without their value class representationKT-87330Introduce Static Initialization Control Flow Graph for ClassesKT-89876K/N IC: "File … is not found in cache" after a file is renamed or moved to another module (stale weak dependency)KT-87452Fix remaining issues in companion blocks and extensions on JVMKT-10001False unnecessary non-null assertion on a pair elementKT-6843NPE in REPLKT-46419FIR: Investigate how integer-literal resolution worksKT-63741K2: fix visibility inference with overridden + inherited memberKT-81874NPE related to data race during Application disposalKT-74051Add a Continuation for tail-call suspend functionsKT-89112Move transformationarrayOf(...)->[...]in annotations to constant evaluatorKT-89374Companion blocks: false positive PROPERTY_WITH_BACKING_FIELD_INSIDE_VALUE_CLASS for property inside companion block of value classKT-88520Equality applicability checker should account for custom equals in full value classesKT-84001KIAEWA: Exception in type checkers when classpath contains newer Kotlin-compiled dependenciesKT-86888Update PersistentMultimap to follow persistent collection naming conventionsKT-70118[KLIB Resolve] Stop using depends= property of klib manifest when building caches in NativeKT-89453INVALID_NON_OPTIONAL_PARAMETER_POSITIONignoresexpect-chain defaultsKT-89457companion block on@JvmRecordclass cannot be compiledKT-85168Generate static initializers as proper IR functionsKT-85104JVM compilation error when having TODO() as a parameter default value of an inline function when adding a call to itKT-82959IllegalArgumentException: Unhandled intrinsic in ExpressionCodegen for generated top-level declarationsKT-89259Collection literals: enabling+CollectionLiteralsBasedAnnotationResolutioncausesMISSING_DEPENDENCY_CLASSKT-89475Missed MISSING_DEPENDENCY_SUPERCLASS for parameters of value classesKT-89391KMP separate compilation: false-positiveEXPECT_ACTUAL_IR_MISMATCHon declarations from friend dependenciesKT-86282Implement FIR builder based on KMP parserKT-79562NPE when passing non-lambda argument of nullable non-suspend function type into function that accepts nullable suspend function typeKT-89466KMP Separate Compilation: NoSuchElementException in case of classpath substitutionKT-73165"ANNOTATION_ARGUMENT_MUST_BE_CONST" caused by Enum name as a constant in AnnotationKT-89157Remove temporary useless casts introduced by KT-79212KT-89206Inlining of TODO() as a default value leads to an internal errorKT-89533class KtValueArgument is not a subtype of class KtCollectionLiteralExpression for factory UNRESOLVED_COLLECTION_LITERALKT-88081Normalize Double.NaN and Float.NaN after constant evaluationKT-89430Don't store raw-fir generated tests in gitKT-86095"VerifyError: Bad type on operand stack" when inline+crossinline function returns anonymous object overriding internal suspend fun with yield()KT-83304Context sensitive resolution doesn't work on mutable collection operators (no explicit import from enum)KT-81558Context-sensitive resolution cannot resolve an unqualified enum entry in GradleProperty<T>-like casesKT-89642Disable feature typed equals in value classes for full value classesKT-87531AbstractMethodError on intersection override with@JvmFieldproperty when accessing property through interfaceKT-89415Refactor logic around FirParser.LightTree/MultiplatformParsing and USE_LIGHT_TREE configuration flagKT-80383Getter without a body is allowed on a property with an explicit backing fieldKT-89641Verify JS export works for full value classesKT-20245NoSuchFieldError on usage of crossinline lambda in anonymous object inside another anonymous object in inline functionKT-82900Language Feature EnhancedBridgesGenerationKT-89407When frontend reports diagnostic on null source, report as sourceless diagnosticKT-89476Diagnostic for incorrect@EagerInitializationusageKT-89068JvmExposeBoxed: secondary constructor of inline class is never exposedKT-89063JvmExposeBoxed allows to generate invalid Java method namesKT-83419K2: CCE wheninlinelambda changes avarinvolved in animpliescontractKT-89121[Native]@BindClassToObjCNameadapters from a cached module never reach Kotlin_ObjCExport_sorted{Class,Protocol}AdaptersKT-89744Apostrophe in an escaped identifier corrupts ARGUMENT_TYPE_MISMATCH diagnostic renderingKT-89341KMP separate compilation: false-positive EXPECT_ACTUAL_IR_MISMATCH on members of inner class with generics in outer classKT-89635False "Return type mismatch" in interface delegation when the delegated function with an implicit return type is declared in another fileKT-89762KMP Separate Compilation: EXPECT_ACTUAL_IR_MISMATCH caused by accessing a java field in a single platform projectKT-83340Investigate need ofKtRegisteredDiagnosticFactoriesStoragecomponent in AA modeKT-74793Parser: Property accessor of a non-local destructuring declaration leads to exceptionsKT-89168Reflection: support getDelegate() for companion block properties in interfacesKT-81075False negative MISSING_DEPENDENCY_SUPERCLASS on unresolved supertype of SAM constructorKT-86380New inline variables scheme: addition of this variableKT-89834Drop RawFirBuilderTotalKotlinTestCase.testPsiConsistencyKT-77583K2: Support repl snippets with LightTree/KMP-based raw FIR buildingKT-74304K2: WRAPPED_LHS_IN_ASSIGNMENT on annotationsKT-75366Provide proper keys for ScopeSession#getOrBuild usagesKT-89770KMP separate compilation reports EXTERNAL_TYPE_EXTENDS_NON_EXTERNAL_TYPE for external class extending JsAnyKT-89584Build rich references for suspend conversion & SAM constructor referencesKT-89837Correctly evaluatenamefor declaration that are imported with different nameKT-34051UnsupportedOperationException when using reified type inside lambda in inline functionKT-86093Context sensitive resolution does not apply if simple access is resolved to invisible qualifierKT-83498Implement LT support in the K2 REPLKT-89790Improve error reporting around new compilation schemeKT-89751K2 REPL: contracts of functions are not resolved inside REPL snippetsKT-89769FIR2IR throws "IR class for not found" when a class's supertype isn't exposed viaapiKT-87149Drop K1-dependent parts of the scripting compiler pluginKT-87856Investigate failures in scripting tests after a full switch to K2KT-89416Native: top-level properties are not initialized when checked for initialization state from another classKT-89313DNN in supertype leads to compiler crashKT-87596Kotlin/Native: port calls checker to LLVM passKT-89576PSI path in script compilation still depends on K1KT-47891JVM: "IllegalStateException: Bad exception handler end" with nested try/run/finally blocksKT-89232Align context-sensitive resolution with how collection literals are resolvedKT-89410Introduce WillBecomeValue annotationKT-82548K2: report a warning about annotations which target non-existent accessorsKT-89461KMP separate compilation: Incorrect fake-override is e/a mismatched in case of duplicated supertype in dependency classKT-86793setupCommonOptionsForCaches does not forward pagedAllocator (and other runtime constant options) to cache sub-compilationsKT-39697"Cannot infer type parameter" in map with java static or global method referenceKT-89451Suspend conversion: anullargument arrives non-nullKT-85853CompanionBlocksAndExtensions: companion block val in interface generates illegal private static field (ClassFormatError 0x1A)KT-90169Callable references: Array passed as a single vararg element for generic vararg function since 2.4.0KT-89655Prohibit lateinit in companion blocks in interfacesKT-90014K2 / JVM:IllegalStateException: Don't know how to compile annotation value ERROR_CALL 'Unresolved reference: <Strange deserialized enum value: ...>'when delegating to a Java interface annotated with a nested Kotlin enumKT-89390K/N IC: per-file caches are not invalidated when toggling -Xcompanion-blocksKT-89983Partial linkage doesn't report a value class whose superclass became an identity classKT-89982No warning for Kotlin/Native WeakReference and createCleaner on value class and primitive instancesKT-90352K/N: with -Xcompanion-blocks-and-extensions, a Kotlin subclass of an Objective-C class fails to link (undefined $clinit_trigger of the ObjC supertypes)KT-88576False-negativeOVERLOAD_RESOLUTION_AMBIGUITYon increment call in recursive initializerKT-87887KJS: Prefix increment on dynamic array access is lowered into no-opKT-84802Add new synthetic class flag to JVM metadataKT-89049JVM: do not generate DefaultImpls for companion block functionsKT-85307"Type argument is not within its bounds" for Java classes with recursive generic bounds (F-bounded polymorphism)KT-87676Context Parameters: Cannot find local variable '$context-String' with type java.lang.String when evaluating contextual call that uses lambda context parameterKT-88312Implement 'returnsParameter' contractKT-89184JVM: anonymous function SAM-converted via invokedynamic loses its non-null parameter assertionKT-11474ISE: Requested A, got foo.A in JavaClassFinderImpl on Java file with package not matching directoryKT-89651POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION_WARNING is not reported for usage of Java annotation typealiasKT-89561Performance regression in body resolve around 8-10 Sep 2026KT-88667False negative POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION on@get: use-site target and annotation constructor callKT-86453K2: Generate IrRich*Reference for all kinds of referencesKT-87284Implement type conversion from ILT/builtin numeric types into types marked with a special annotationKT-79212Resolve new type for class literal of unbounded reified type parameterKT-88715K/N: "Argument list too long" when linking with a large number of included static librariesKT-89589RuntimeException when const evaluation is made inside a companion block of a local classKT-33232DEPRECATED_JAVA_ANNOTATION: false positive for "Deprecated" annotation with "forRemoval" or "since" argumentsKT-89527Type arguments are allowed (and unresolved) with context sensitive resolutionKT-89523MFVCs don't allow version overloadsKT-57802K2: Backend Internal error: RecordEnclosingMethodsLowering.ktKT-59526Store annotation default values in metadata on JVMKT-82132False-positive type mismatch with -language-version 2.2KT-71854K2 IDE. False positive red code because of external annotation on a generic parameterKT-63454Properly check that inline fun is in the same module as callee inIrSourceCompilerForInlineKT-85188Don't poison binaries with companion blocks & extensions for LV >= 2.5KT-85230False negative deprecation diagnostics on import of member of nested classKT-80247No diagnostic on unresolved type annotation from a dependency in an inferred typeKT-86524JvmExposeBoxed: Collection does not implement abstract methodKT-86464SupportisPublicAbiJVM metadata flag for anonymous and synthetic local classesKT-85764Native: Prohibit compiling sources in 'kotlin' package by defaultKT-86905DFA-based exhaustiveness bug with implicit companion accessKT-87347False negative NON_ABSTRACT_FUNCTION_WITH_NO_BODY/MUST_BE_INITIALIZED for companion block member in interfaceKT-87360False positive DELEGATED_PROPERTY_IN_INTERFACE for delegated companion block member in interfaceKT-87364False positive BACKING_FIELD_IN_INTERFACE on companion block member in interfaceKT-87351False positive WRONG_MODIFIER_CONTAINING_DECLARATION on internal companion block members in interfaceKT-87413CompanionBlocksAndExtensions: impossible to use field in companion extension properties getters/settersKT-87507False-positiveABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTEDon fake-override with value parameter of type missing in dependenciesKT-30062"AssertionError: Recursion detected on input" with class implementing itself by delegationKT-85417K2: False negative SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATIC diagnostic when superclass is genericKT-73771K2: Infinite compilation caused by buildList without typeKT-83575Native: perf logging doesn't work correctly for subcompilations (like per-file caches)KT-87278Smartcast toAnyin RHS of==with nullable type parameterKT-87520Implicit JvmExposeBoxed breaks delegation by interfaceKT-87592Kotlin/Native: make remove redundant safepoints phase a proper LLVM passKT-72706Confusing "INVISIBLE_REFERENCE" when calling private constructorKT-84406Remove support for IR serialization in JVMKT-82677Switch latest stable version in Kotlin project to 2.5KT-87194K/N IC: changing an external library to an already-cached version in ~/.konan doesn't rebuild application's cacheKT-87504Do not make@IntroducedAta compiler-required annotationKT-87550Drop the "too complex expression" error with@IntroducedAtKT-87273K/N IC: cinterop klib caches are not recompiledKT-86332False positive MISSING_DEPENDENCY_IN_INFERRED_TYPE_ANNOTATION for implicit lambda parameters with inaccessible type annotationsKT-87335Context parameters: wrong LINENUMBER emitted for context argument loads in JVM bytecodeKT-84780The INITIALIZER_TYPE_MISMATCH diagnostic is reported on the assignment operator (=) instead of the initializer expression when there is a type mismatchKT-87073CompanionBlocksAndExtensions: calling companion extension function from project/binary dependency fails with java.lang.IndexOutOfBoundsExceptionKT-87775Incorrect RETURN_VALUE_NOT_USED_COERCION where regular 'Return value not used' was expectedKT-86554Check suspicious when over ConeKotlinType in JavaOverrideCheckerKT-87786MakeConeLookupTagBasedTypeinto a sealed classKT-87606Compiler crash on red code with redeclaration of type parameter which is used as expressionKT-87202K/N IC: NoSuchFileException: metadata.properties when upgrading Kotlin from <2.2.10 to >2.2.20KT-87695Compiler crash while compilation of MFVC destructuring with a variable name mismatchKT-87696NBD doesn't work for smart-casted MFVCKT-87546Fix slightly confusing test data for explicit context arguments in case of Java overrideKT-87553K2: Incorrect argument evaluation order with explicit context argument in presence of explicit extension receiverKT-86635Analysis API: arguments of applied annotation is sometimes (incorrectly) emptyKT-75945Indy: Allow lambdas with annotationsKT-85143Remove the unfinished "compile against klib" feature on JVMKT-87436Separate LFs and compiler arguments for companion extensionsKT-87725Prohibit lambda implementations of sealed Java interfacesKT-87466JvmExposeBoxed: Cannot generate code for delegating constructor of data class in IJKT-87189False negative NoWhenBranchMatchedException: when subtype implements multiple sealed interfacesKT-87838IntroducedAt: Using@IntroducedAtin ordinary class constructor with inline class parameters leads to platform declaration clashKT-87297'Underscore for unused variable' feature should be stable and enabled by defaultKT-65195K2: Unexpected exception when executing dynamic array element inc/decKT-87269Kotlin Debugger: ISE “Non-empty unresolved argument list.” on evaluating serializable value class with custom serializerKT-82461Context sensitive resolution can use extension properties declared on Any receiverKT-82465Context sensitive resolution does not resolve extension properties in presense of any additional receiverKT-82462Context sensitive resolution can use extension properties from importsKT-72903K/N: combineContextandKonanBackendContextKT-29890Inline constructors for arrays could not be inlinedKT-87864K2IdeK2CodeKotlinSteppingTestGenerated$StepOver$Uncategorized.testSoSuspendableCallInEndOfFun failsKT-81816False positive "Unreachable code" with lambda and elvisKT-87255CompanionBlocksAndExtensions: companion blocks initialized before enum entiresKT-87975Reenable inline checks in noinline parameter default valuesKT-87821Do not promote visibility of local lambda classes in private inline scopes to PublicKT-87926USELESS_JVM_EXPOSE_BOXED confuses in case of argument presenceKT-86518K2: Enrich NoWhenBranchMatchedException with additional information about the causeKT-87061Companion blocks: compilation fails when companion function names clash with enum methodsKT-87931CCE caused by suspend conversion in receiver positionKT-87577Compiler crash on red code with ambiguous type parameter used as expressionKT-88045Delete leftovers of javac integration (javac-wrapper) subsystemKT-87103Drop compiler/fir/dumpKT-87830Complementary value sets should include non-direct inheritors of supertypesKT-87261K/N debug: 'is' check miscompilation — local variable reports wrong type when two smart-cast extractions precede an inline loopKT-88142False negative INTERFACE_AS_FUNCTION when Java interface contains function called toString, equals or hashCode with receiver or context parametersKT-86543IllegalStateException: Parent of this declaration is not a class: PROPERTY IR_EXTERNAL_DECLARATION_STUBKT-88141False negative MANY_IMPL_MEMBER_NOT_IMPLEMENTED when method is called equals, hashCode or toStringKT-88128RewriteJvmBackendClassResolverto get rid of descriptor usagesKT-88127Remove or replace usages ofpsiElementutilKT-81416Native: compiler fails in case of cross-module Volatile referencesKT-65832K2: Support diagnostic suppression with complex expression argumentKT-88149Mention operator token in UNRESOLVED_REFERENCE_WRONG_RECEIVERKT-88134Improve diagnostics for name-based-destructuring=complete and using obsolete syntaxKT-87664JvmExposeBoxed: exposing constructor of ordinary class changes behaviorKT-87368Adjust the message ofIMPOSSIBLE_IS_CHECKKT-88066Java Direct: (Re)introduce lazy AST calculationsKT-88079Java Direct: Get rid of VFS and VirtualFile useKT-88064Java Direct: Use lexer for lightweight "pre-parsing" instead of regexesKT-88101Java Direct: Deduplicate repeated type resolution logicKT-88103Java Direct: use FirLazyJavaAnnotationList to avoid cycles in enumsKT-86109K2: Compiler crash on mix of static/companion in jkj hierarhyKT-86742JVM: missing accidental override error on companion block membersKT-86119JVM builtins dump for JDK21 does not include methods introduced after JDK8KT-80741Fix rendering of inner classes with generic outer classesKT-67014K1/K2 handle when expression as annotation target differentlyKT-87129Decide what to do with tests in ScriptGenTestKT-87549@IntroducedAtdoes not work correctly with inheritanceKT-73462AssertionError "FUN LOCAL_FUNCTION_FOR_LAMBDA has no continuation" on suspend lambda with parameter of functional type called from another fileKT-85403kotlin.NoWhenBranchMatchedException on Kotlin Native with sealed interfaceKT-88102Incompatible return type in delegated member not reported if it implements intersection overrideKT-88487Return value checker: unresolved TODO about Array.contains in stdlibKT-88480KMP parser: string literal content is remapped to IDENTIFIER if it matches a soft keywordKT-87389Change companion extension metadata serialization formatKT-88191KMP Separate Compilation: Problems withthrowNoWhenBranchMatchedExceptionfunctionKT-88340'returnsResultOf' contract works incorrectly with named argumentsKT-87881IllegalStateException: Expected some types crash in FIR type inference when buildList contains implicit receiver call and nested when expression with !is smartcastKT-70450OuterThisLowering - consider merging it into InnerClassLoweringKT-84499Kotlin/Java interop: type mismatch when overriding methods from Java class with module import declaration (Java 25)KT-87659No warning emitted when runtime-retained annotations on lambdas are silently discarded by invokedynamic codegenKT-88132False positive INCORRECT_RIGHT_COMPONENT_OF_INTERSECTION when typealias for Any used as right component of definitely-not-nullable supertypeKT-88013Native: migrate CastsOptimization from Predicate.Empty to Predicate.True and fix Predicates.orKT-88662Render the actual receiver type inUNRESOLVED_REFERENCE_WRONG_RECEIVERKT-88326Enable IntrinsicConstEvaluation since 2.5KT-88332IntrinsicConstEvaluation: false positive "const val initializer must be a constant value" on division by non-zero value that overflows to int zeroKT-88099"ArithmeticException: / by zero" caused by Int.mod on division by zero in constant evaluationKT-88721KMP Separate Compilation: missing fake-override for internal declaration from a friend moduleKT-87165[K/N] computeTypes phase breaks boxed equalityKT-87967Implement deprecation warning for concurrent maps purely implementation hierarchyKT-88766K2 KMP JVM IC: "NoSuchElementException: Key Module is missing in the map" when an actual and its expect are recompiled togetherKT-88190False positive UNEXHAUSTIVE_WHEN_BASED_ON_JAVA_ANNOTATIONSKT-36111False negative warning on exhaustivewhenwith flexible type of sealed class in subjectKT-71600K2: missing WHEN_ENUM_CAN_BE_NULL_IN_JAVAKT-67462Use new lowering phase creation API in Native backendKT-88228JVM: IllegalAccessError at runtime when delegating property to private member of sealed superclassKT-64802K2: Investigate behavior change related to PCLA+Captured types+ILTKT-71754PCLA: compile-time failure on fixing a type variable on demand for an indexing operator assignmentKT-53422NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER in flow.collectKT-88218-Xheader-mode: inline function bodies replaced with aconst_null/athrow stubs instead of being preservedKT-78002K2: local class function annotation observes the function parametersKT-85368ConstraintIncorporator#insideOtherConstraint is order-dependentKT-77718K2: Remove workaround for KDF in FIR2IR implicit cast generation for receiversKT-87788Incorrect smart cast stability of implicitwhensubject variablesKT-88761Native: remove custom validation phasesKT-64219K2, Wasm: Green expect-actual code allows for invalid external type hierarchyKT-88860Fir2Ir crash "Expected argument type to be Nothing?" when a non-null value is null-checked and passed to a generic functionKT-88769KMP separate compilation: incorrectEXPECT_ACTUAL_INCOMPATIBLE_CLASS_SCOPEin case of complex inheritance by delegationKT-88770KMP separate compilation: false-positive SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATICKT-88580Kotlin/Native Release: "Unexpected receiver type: kotlin.collections.ArrayList" in generic collection codeKT-88012Abstract diagnostic factories from source typesKT-88307Support actualization of multiple top-levelexpectfunctions with the sameactualKT-88811Compiler crashes with "IllegalArgumentException: List has more than one element" when separate KMP compilation is combined with useMetadataOnIncrementalClasspathKT-88934Error in IrConstExpressionTransformer when lowering constant expression in subject for function referenceKT-88961K2: FirPrefixAndSuffixSyntaxChecker misses literal prefixes/suffixes outside binary expressions with the LightTree parserKT-88427K2: compiler crashes with IllegalArgumentException when escaped class name containing braces is used in diagnostic type renderingKT-89016Replace early return with assertion in function type conversionKT-89008Constant condition elimination may break debug information of inline scopesKT-86376New inline variables scheme: incorrect line numberKT-88078Java Direct: Refactor binary class finder entanglementKT-88304java-direct: JavaUsingAst tests silently fall back to the PSI-based finder, hiding java-direct failuresKT-88260java-direct: support Java 25 module import declarations (JEP 511)KT-89013K/N: auto-built release compiler caches are compiled at O1, not O3KT-87540Fix potential issues in explicit context arguments implementationKT-88369JvmExposeBoxed on overrides makes KAPT generate a standalone method with faulty@OverrideannotationKT-88325JvmExposeBoxed: False-positive "no effect" warning on extension propertiesKT-88388JvmExposeBoxed: Exposed constructor leads to NSME from another moduleKT-87940[DFA] Remove VariableStorageKT-89087JVM: Initialization order of companion blocks is incorrectKT-89065JVM: companion block functions in interfaces do not compile with-jvm-default=disableKT-89123Keep the visibility inconsistency about data class copy and primary constructor as a warningKT-87025Support aliased imports to compiler required annotationsKT-87072SINCE_KOTLIN doesn't work with non-literal argumentsKT-87020Type aliasedAnnotationTargetused in@Target()`KT-77362JVM diagnostics are not properly reported for scripts and REPLKT-89043Explicit context arguments: align sinceVersion with the 2.6.0 Stable planKT-89057IllegalArgumentException: source must not be null in FirOverrideCheckerKT-88399K2: StackOverflowError in FirPrefixAndSuffixSyntaxChecker.getLeaf for a long string-concatenation chainKT-88995Inline scopes numbers: wrong call site line numbers when a default argument value contains an inline callKT-88339JvmExposeBoxed: no null check is generated in exposed methodsKT-87385Ensure that KMP mismatches in libraries in the HMPP scheme are reported reasonablyKT-89183JVM: LambdaConversionException on JDK 9+ when a SAM method parameter is a type parameter with two interface upper boundsKT-89325Java Direct: no supertypes on resolution due to reentranceKT-86046Put@K1Deprecationto all public declarations of K1 modulesKT-88953CCE caused by suspend conversion of nullable argument to nullable expected typeKT-87372False positive INVISIBLE_REFERENCE when accessing protected companion block member of superclassKT-86978Type arguments are allowed (and unresolved) in qualifiers in compiler-required annotationsKT-89196@IntroducedAtdoesn't discover default values in scenario with@ExpectRefinementKT-89167Internal compiler errors on const evaluationKT-89134TRIM_MARGIN_BLANK_PREFIXwhen the prefix is an expressionKT-89039JVM: Companion inline function with a default value leads to RuntimeException
Compose compiler
b/485865131Removed deprecatedIntrinsicRememberCompose feature flagb/485865131Removed deprecatedStrongSkippingCompose feature flagb/555304803Fix parameter traversal inComposableLambdaTokenizer.captureInsnCountb/539644912[Compose] Support rich callable references for@Composablefunctionsb/546101628Fixed a bug that caused miscompilation whenever awhenexpression had a result that was computed by anotherwhenexpression, and the innerwhenexpression had a@Composablecall in one of its conditions.b/549552317Fixed a bug that, in certain cases, prevented execution of non-local returnstatementsinside lambdas called fromwhenexpressions.b/481422057Made the applier inferencer support repeatedComposableTargetannotations per the semantics described in the documentation ofComposableTargetb/530458587Start initializing the fields ofComposableSingletonsobjects lazily
IR. Inlining
KT-86558Forbid accesing volatile references after inliningKT-72464[Native][JS][Wasm] Non-local return through suspend conversion breaks the IR inlinerKT-71896KLIB IR inliner: Enable cross-module inlining in LV=2.5KT-88020[KLIBs] Enable cross-module inliner in stdlib & kotlin-testKT-86578Leaking of a private entity through a companion extension: cross-module caseKT-87829Volatile field leaking through internal inline function in friend moduleKT-87521renderCascadingInlining throws NPE when reporting an AFU-transformed functionKT-81022KLIB inliner: Don't specify language features in test runners for IR Inliner on 1st stage
IR. Interpreter
KT-84627Disable IR interpreter in the compilerKT-87043Remove IR interpreter sources from the compiler
IR. Tree
Fixes
KT-88082Do not allow constant folding if the resulting expression is Double.NaN and Float.NaNKT-87954UsekotlinLibraryfrom IrModuleFragment instead of a library from ModuleDescriptorKT-87836Make sure that type, value and kind in IrConst are coherentKT-87442[IR] Introduce 1st stage warning on failed tailrec optimizationKT-89203IR validation: New checker to prohibit use of legacy Ir*Reference nodes on 1st compilation stageKT-83236PeopleInSpace_mpp compilation error: The symbol table has been sealedKT-78960[FO] Limit static fake overrides generation for static functionsKT-85698Type parameter is out of bounds (in setter) for an extension property with type parameterKT-85896Type parameter is out of bounds (in setter) for a property with context parametersKT-87962[IR] Add a checker that IrClass.superTypes is not emptyKT-87732Don't useIrBuiltInsOverDescriptorsin KLIB tool'sdump-ir-inlinable-functionscommandKT-87438Make sure there are no duplicated names in lowerings on first and second stagesKT-87300IR: Replace module reference inir.declarations.createEmptyExternalPackageFragmentfromModuleDescriptortoIrModuleFragmentKT-87198IR: AddIrModuleFragmentlink toIrExternalPackageFragmentKT-77049Avoid failing to produce an IR dump in testsKT-88177IR: MarkDescriptorVisibility.isVisiblewith@ObsoleteDescriptorBasedAPIand ensure it is not used outside the old frontend and psi2irKT-84335[Klib] Carefully revise usage of IR validator checkers in testrunnersKT-88146ReplaceIrDeclaration.modulewithIrDeclaration.moduleFragmentKT-69305Re-enable reporting out-of-scope type parameter usages during pre-lowering IR validationKT-87456Make sure IR renderer is working correctly withisStaticcallKT-85576KLIBs: Add PL tests with companion blocks and companion extensionsKT-70048IR: remove addSimpleDelegatingConstructorKT-88693Investigate using the same IR validation settings for all backendsKT-88610Type parameter is out of bounds while returning fallback valueKT-88864Cache deserializers using a stable key inside IR linkerKT-88556PL: Companion extension receiver is missed during the rendering process
JVM. Reflection
New Features
KT-42082Ability to retrieve a container/owner class of the KProperty/KFunctionKT-87955Reflection support for contextualized callable referencesKT-85904Reflection: add a way to get companion extension classKT-84275Support companion blocks & extensions in reflection
Performance Improvements
KT-87408kotlin-reflect: KCallable.callBy on a bound::copyreference is ~55x slower since 2.2.20KT-84354kotlin-reflect: replace usages of SoftLazy with regular safe-publication lazy
Fixes
KT-91317Reflection: IAE "fromIndex(1) > toIndex(0)" on KClass.members of stdlib inline classesKT-80710Reflection: change KCallable representation to avoid dependency on K1KT-87367Reflection: memberFunctions fails on suspend-implementing classesKT-89732Reflection: IllegalStateException in CovariantOverrideComparator for Java interface inheriting both raw and generic method with same erasureKT-88503KType.isMarkedNullable always returns false for@Nullable-annotated Java parameters in K2 reflection implementationKT-88939Reflection:@JvmStaticobject function parameter annotations are off-by-oneKT-88944Reflection: member enumeration on built-in types throws KotlinReflectionInternalError in new implementationKT-88988KotlinReflectionInternalError when reading annotations of an interface property through a sub-interface that does not redeclare itKT-88989Reflection: javaType is not supported when the type mentions the function's own type parameterKT-89000KotlinReflectionInternalError on Array size.getter.annotationsKT-89019Reflection: Java Enum.valueOf(value) has lost its parameter nameKT-89280NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer classKT-87363Reflection: kotlin.Any constructor exposes@IntrinsicCandidateannotation in the new implementationKT-89918Reflection: IllegalStateException while processing the times overload during Duration property lookupKT-90525Reflection: "MutableCollectionKClassImpl cannot be cast to ClassBasedDeclarationContainer" from KType.classifier of annotated Java collection typeKT-89419Reflection: parameter annotations on bound constructor reference are loaded incorrectlyKT-85735Reflection: Java wildcard type based on Kotlin type with declaration-site variance is loaded differently in new implementationKT-89949Reflection treats full value classes and Java value classes as inline classes when calling functionsKT-89952Reflection fails with NoSuchElementException when an inline class wraps a full value classKT-89956KClass.isValue of mapped builtins like kotlin.Number ignores that their Java class is a value classKT-87308Reflection: KTypeParameter instances not equal for bound/unbound KPropertyKT-86926Reflection: references to functions inherited in Java are not substituted in the new implementationKT-87356New Reflection: KotlinReflectionInternalError on .annotations of primitive/array constructorsKT-87365Reflection: java.util.LinkedList::class.supertypes contains a duplicate MutableList<E!> entry in the new implementationKT-88145Investigate potential bug caused by incorrect statics handling in KClassImpl.Data#getInlineClassUnderlyingTypeKT-87369Reflection: KClass.members fails on Java class with self-referential raw type boundsKT-87464Reflection: property accessor parameters are equal to property parameters in the new implementationKT-87581Reflection: extra abstract invoke() method shown for a Java class implementing a functional interface in the new implementationKT-87948Reflection: AssertionError "Different tree sizes of bounds" on inheritance from Java raw class with self-recursive bound with method overrideKT-87709Reflection: "invoke" in classes inheriting from suspend function types is loaded incorrectlyKT-89003Reflection: top-level properties and functions are shown java-way
JavaScript
New Features
KT-49791KJS: Provide option to exportdynamicandAnyasunknownKT-87027[Effect Analysis] Propagate effects across the call graph based on function body callsKT-87026[Effect Analysis] Introduce a lowering for analyzing mutation of inputs and outer stateKT-87029[Effect Analysis] Leverage effect analysis results in DCE to delete unused properties' initializersKT-87024[Effect Analysis] Mark up kotlin-stdlib declarations with effect annotationsKT-88294Add es2020 target for Kotlin/JS and Gradle pluginKT-88024KJS: Allow exporting interfaces nested in other interfaces to JavaScript
Performance Improvements
KT-89682K/JS & K/Wasm: Initialize trivial objects eagerly even in dev mode
Fixes
KT-91371K/JS: extending a JsExport-ed interface breaks property accessKT-80188Design exporting of suspend lambdas into JS/TSKT-17719JS: integer division by zero does not throw exceptionKT-49422Fix test about support of DefinitelyNotNull type in backendsKT-86273@JsExport.Ignore does not work properly with data classes propertiesKT-64821KJS: "TypeError: * is not a function" with class which extends suspend lambdaKT-90912K/JS: IR-based TypeScript export loses abstract modifier on abstract suspend method with a default argumentKT-90587K/JS: Exported abstract suspend functions are not callable from JSKT-90564K/JS, K/Wasm: top-level suspend function doesn't trigger file properties initializationKT-90843Investigate flaky JS/Node Misc tests in Kotlin 2.5KT-86954K/JS: hashCode() of Double/Float disagrees with equals() for NaN valuesKT-89920K/JS: Adapted::ulongArrayOfreference does not unbox ULong arguments, producing a corrupted ULongArrayKT-89919KJS: "Unhandled JavaScript exception: array.slice is not a function" when using non-adapted ::uintArrayOfKT-89591JS plain objects: generated top-level invoke/copy leak visibility for internal interfacesKT-52772KJS: Generated *.d.ts files should use type "unknown" in favour of type "any"KT-89144[JS, Wasm]static_init_calledfield for static initializers is not initialized correctlyKT-87516[K/JS, K/Wasm] Companion objects coming from super interfaces are not initializedKT-86934K/JS: Stack overflow when implementing interface with suspend fun using anonymous objectKT-85047Kotlin/JS:@JsStaticon suspend fun of class companion generates incorrect d.tsKT-89372KJS: Run the second DCE pass after the optimization pipelineKT-72720Setp up a nightly test suite for running all JS compiler tests with -Xir-generate-inline-anonymous-functionsKT-85540Drop longArrayClass definitions from boxedLong.kt and longAsBigInt.ktKT-88343KJS: ReportJS_MODULE_PROHIBITED_ON_VARwhen@file:JsModule` is presentKT-83337KJS: Difference in behavior on nested class initializationKT-89290Web: companion block members are not initialized when observed from a nested classKT-89978JS and Native box single-field full value classes and call equals() when comparing them with ==KT-89984JS: nullable value class over a nullable type parameter holding null is treated as nullKT-89449Kotlin/JS: Member names no longer minified in productionKT-13338JS: don't generate new class/object for empty enum entryKT-73067Drop support for the legacy JS metadata from the metadata decompilerKT-75176Add infrastructure for bundle size testingKT-85990K/JS: Default parameter values ignored in@JsStaticsuspend functions when class is exportedKT-86433JSCODE_ERROR for object destructuring assignment with default valuesKT-86437Incorrect handling of array destructuring with elisionKT-87377External classes can have field names colliding with minimized subclass field/method namesKT-86648[K/JS] Support companion blocks and extensions in TypeScript exportKT-87793[Wasm, JS, IC] Invert IC cache invalidation keys listKT-87352Kotlin/JS: Ignoretypealiasinside@JsExported classKT-88015KJS: Exported sealed interfaces should not be implementable from TypeScriptKT-88117K/JS: duplicated expression in generated JS comma expression for IrCompositeKT-87901KJS: Perform WhileConditionFolding on IR instead of JS ASTKT-86771KJS:@JsExport.Ignore on a Long member still triggers the -Xes-long-as-bigint compilation errorKT-87008K/JS: Preserve containers' names when lifting static members in StaticMembersLoweringKT-87774KJS: Refactor org.jetbrains.kotlin.js.testOld.utils.DirectiveTestUtilsKT-88698[K/JS, tests] Remove obsolete DISABLE_IR_VISIBILITY_CHECKS from kotlinx-serialization test dataKT-88571K/JS: "llegalStateException: Internal error: cannot find external signature" caused by@Serializableenum in 2.4.20-RCKT-87753Add "scopes" decoding to ECMA426BasedSourceMapParserKT-88463K/JS: Rewrite JsToStringGenerationVisitor to KotlinKT-87127KJS:@JsPlainObjectfactory contains duplicated parametersKT-88158KJS: Properly export types of annotation classes to TypeScript
Klibs
New Features
KT-86840KLIBs: Implement a component inside the compiler to compute DAG of dependencies for a given set of librariesKT-86081KLIBs: Support moving companion fun to parent class
Performance Improvements
KT-89498IR linker performance: IrFileDeserializerImpl.getAllMatchingSignatures()
Fixes
KT-73115Don't consume old KLIBs produced by compiler versions < 1.6.0KT-89825K/N: "IrClassSymbolImpl is already bound" when two cinterop libraries in the same package declare the same C structKT-87445Native: Rework internal presentation of KFunction to support references with context parametersKT-87487KLIBs: Don't serialize empty metadata package fragmentsKT-91139[Klib] Backward compatibility break: Kotlin 2.4.20+ miscompiles suspend conversions from KLIBs built by Kotlin ≤ 2.2KT-90675Native, Klibs: Value class '==' boxes because the deserializer doesn't recognize the old GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER originKT-81624[KLIB Resolve] Kotlin/Native: -no-default-libs may lead to the final binary depending on a lot of system frameworksKT-61096[KLIB Resolve] Drop KLIB resolve inside the Kotlin/Native compilerKT-84838Get rid ofModuleDescriptorfromIrModuleDeserializerKT-87387Fix K1 API usage in:kotlin-util-klib-metadataKT-89482[KLIB] Introduce special signature indices in regular & C-interop Native KLIBsKT-89921klibs: failure with two identical static inline functions in the same file in different classesKT-89276KLIBs: Check remaining usages ofKlibMetadataProtoBuf.Headerin compiler's source codeKT-84836Minimize usages of IrBuiltIns in the KotlinIrLinkerKT-81947[Wasm] Klib backward and forward compatibility testingKT-86320[PL] Replacing unusable classifiers with Any? type may cause a signature clashKT-87104Make org.jetbrains.kotlin.konan.file.File to be implementation detail of the compilerKT-87450Advance KlibAbiCompatibilityLevel to 2.5KT-87447Wasm: Rework internal presentation of KFunction to support references with context parametersKT-87443KLIB: Store metadata flags in manifestKT-87625Wasm: a callable reference bound to a null receiver equals an unbound referenceKT-54019[PL] Unimplemented FO: Adding interface to abstract parent + direct reference to absent member: JS build is successful, Native failsKT-86572-Xheader-mode: header klib omits members provided by interface delegation (by)KT-77818[KLIB resolve] "The same 'unique_name=kotlin' found in more than one library" warning during metadata compilationKT-87454KLIBs: Add PL tests for references with context parametersKT-86687SplitKLIB_WRITINGmetric, toKLIB_IR_WRITINGandKLIB_METADATA_WRITINGKT-87965[Tests][Klibs] Allow generated version overload wrappers appear during pre-serialization lowerings as legitimate Klib ABI entries.KT-87787PL: callable references to methods/properties of removed companion object
Language Design
KT-12719Must-use return values: warn about unused return valuesKT-89798Alpha release of companion blocks and extensionsKT-86090Stable release of "IntroduceAt": binary compatibility for optional parametersKT-19627Object (name-based) destructuringKT-22505Support calls to trimMargin/trimIndent as initializer for const valsKT-90084Name-based destructuring: switch default to "syntax-only"
Libraries
New Features
KT-83426Add Tau=2*Pi to the stdlibKT-24908CodePoint value classKT-6938Boolean.onTrue/onFalse, ifOrNullKT-89662Stabilize Uuid.Companion.generateV{4,7}KT-89629Make some of the Timer.schedule overloads ignorableKT-87021[Effect Analysis] Introduce a new annotation for marking stdlib functionsKT-89332kotlin-metadata: stabilize RVC-related APIKT-78462Annotate kotlin-stdlib-jvm with@IgnorableReturnValuewhere appropriateKT-39661Support TypeVariable.getGenericDeclaration for types created in KType.javaType in kotlin-stdlibKT-88037kotlin-metadata-jvm: add readLenient()/readStrict() to KotlinModuleMetadataKT-88708Consider documenting that MutableMap.put keeps the stored key instance
Performance Improvements
KT-91066Kotlin/Wasm: KClass.hashCode() allocates and hashes the qualified class name string on every callKT-71987K/N: Optimize Float.ulp & Double.ulpKT-89899K/Wasm: Optimize Double.ulp
Fixes
KT-48530Asymmetric equality for progressions and rangesKT-86051Check the Reflect API surface lib for the Companion Blocks and extensionsKT-89072Kotlin/Native: 1.0.pow(NaN) returns 1.0 instead of NaN from the contractKT-64916Update Dokka build config to use JB Gradle EnterpriseKT-64200Dokka Integration tests refactoringKT-64377Update Dokka Gradle integration tests build configurationKT-82882Migratekotlinx-benchmarksGradle plugin from KLIB resolver toKlibLoaderAPIKT-89177Aggregate functions accepting a destination collection should be annotated with IgnorableReturnValueKT-85126Increase StringBuilder.append(obj: Any?) deprecation level to ERRORKT-89560Make kotlin.concurrent.thread's return value ignorableKT-88241kotlin-metadata-jvm: Consider renaming isStatic to isCompanionBlockMemberKT-56363Kotlin/Native: NativeRandom does not behave well with multiple threadsKT-89174Incorrect exception type documented in random function for rangesKT-86151AtomicFU + companion block: compiler plugin generated invalid IRKT-78707Wasm: Throwable.stackTraceToString misses exception's class if it has no message or causeKT-78998K/Wasm: consider using qualified name instead of simple name for JS Error created for exceptionsKT-65526Rewrite builtins as expect-actualKT-52400Deprecate@BuilderInferenceKT-86956Remove the JS guards from allDistinct NaN tests once KT-86954 is fixedKT-87312Stabilize RVC and allow@IgnorableReturnValueeven in disabled checker modeKT-87849Set@SinceKotlin(2.3) for ignorability annotationsKT-87613Test Federation: Review domain Core Libraries Smoke & Contract testsKT-86760Consider deprecating the assertNotNull 3-arg overload accepting a lambdaKT-57134Native: Consider introducing public ExceptionInInitializerError and NoClassDefFoundKT-86680Revert allEqualBy to == comparison once KT-86678 is fixedKT-87779K/Wasm: remove DoNotInlineOnFirstStage from coroutine-related APIsKT-87780K/Wasm: review coroutine-related APIs annotated by PublishedApiKT-87407Adapt kotlinx.metadata to changes in companion extension metadata formatKT-78174Improve kotlin.AutoCloseable documentationKT-86049Check serialization lib for the Companion Blocks and extensions
Native
New Features
KT-86815[K/N] Header mode for cinterop
Fixes
KT-87869Native: Xcode 27KT-84955Deprecate apple x86_64 targets as ErrorKT-86678K/N: == on boxed Double/Float disagrees with equals() for NaN valuesKT-89258Kotlin/Native: mute volatile benchmarksKT-89637K/N: Linking of linux (x64/arm64) binaries with cinterop on Windows is failingKT-87872Native: a few tests inObjCToKotlinSteppingInLLDBTestfail with Xcode 27KT-89355Kotlin/Native: some benchmarks are missingKT-89541K/N: Enabling-Xcompanion-blocksin stdlib breaks some callable reference tests with OPT, NO_CACHEKT-85131Native: freeze inLLVMGetTargetFromTripleduring a parallel test runKT-88965[Native] Update minimal Xcode versionKT-88857Regression in LibraryPathFilter
Native. Build Infrastructure
KT-87996K/N test task fails with "No cache found for library"
Native. C Export
KT-89632[K/N][CExport] Header declaration order depends on -Xinclude orderKT-87538Kotlin/Native: hide companion blocks and extensions from C export
Native. C and ObjC Import
KT-81934Swift export should look upSwiftBridgeandSwiftNamewhen translating types from platform librariesKT-89401K/N: NPE in IrLazilyBoundAnnotationImpl when a cinterop klib references an annotation from a regular klibKT-89463Native: 'Unable to compile C bridge' when implementing UIScreenshotServiceDelegateProtocolKT-84721Generate C-interop KLIBs in previous ABI version in Kotlin 2.5.0KT-88374Kotlin/Native: deprecate CStructVar.Type with error
Native. ObjC Export
KT-88052[ObjCExport] AA: Property names are mangled differently and accessors do not match K1's outputKT-70626ObjCExport: init constructors order in ThrowableKT-89981Building an Objective-C framework fails with single-field full value classes in the APIKT-87626@ObjCEnuminterpreted as open enum in SwiftKT-88153[ObjCExport] AA: documentation specifying annotation is not attached to receiverKT-87852[ObjCExport] AA: Replace name mangling of special method familiesKT-86199Scalability problems with PackageFragmentProviderImplKT-87738Kotlin/Native: hide companion blocks and extensions from ObjC export
Native. Platforms
KT-78078Remove armv7k(watchosArm32) target
Native. Runtime
KT-88156Kotlin/Native: reduce number of runtime modulesKT-88954[Native] Add -Wno-unknown-attributes to build of the runtime
Native. Runtime. Memory
KT-87963Kotlin/Native: review atomics usage in GlobalData.cpp
Native. Swift Export
New Features
KT-80632Swift export: symbol not found for cinterop protocolKT-87802Swift Export: cross-language subtyping pt.2KT-72556Export top-level extension functions and properties from "main" package as Swift extensionsKT-87574Swift Export: unify error/exception throwing in sync & asynchronous bridges in cross-language inheritanceKT-84191[Swift Export] export KDocKT-87556Kotlin/Native hide companion blocks and extensions from Swift Export
Fixes
KT-88599[Swift Export. Documentation] Flow collection cancellation isn't awaitedKT-86791[Swift Export] Beta versionKT-89728Swift Export: Prohibit exporting objc-imported protocol conformances on kontlin typesKT-88370[Swift Export] Extension property on generic class with type param fails to compileKT-88277Swift Export [Inheritance]: function override with lambda parameter is ignoredKT-88259Swift Export [Inheritance]: toString/hashCode/equals cause EXC_BAD_ACCESS on Swift subclass of an exported Kotlin classKT-88256Swift Export: constructor of a Kotlin subclass with renamed params causes 'error: argument labels for initializer do not match'KT-89159[Swift export] val to var property override is unreadable: "ambiguous use" on the subclass, base value returned via the superclassKT-89839[Swift Export] there could be more than one incoming cinteropKT-89842[Swift Export] extensions of Unavailable type results on conflictsKT-89701Swift Export: sealed-type switch references a subtype nested in an internal classKT-89702Swift Export: reverse bridge calls a member named init without backticksKT-90024[Swift Export] improve compilation performance of Swift ExportKT-89647Native: failing test with state checker onKT-88251Swift Export cross-language inheritance example cannot instantiate KotlinBaseKT-89064Swift Export: StackOverflowError for an exported function with an F-bounded type parameterKT-86403Swift Export: Lean TypeInfo generation for swift inheritorsKT-87947Swift Export fails when inheriting Kotlin abstract classKT-88042Swift Export [Inheritance]: Kotlin can't call an interface method on a Swift subclass that inherits the interface (ClassCastException)KT-88584Swift Export: context parameter is dropped from export when declared in a flattened package: missing argument for parameter #1 in callKT-89067[Swift Export] F-bounded type parameter on a class generates a bridge that does not compileKT-89025[Swift Export] generic type param with generic upper bound fails to compileKT-88999Swift export: leaf case of sealedType() is unreachable when the implementing class is not exportedKT-86510[Swift Export. Tests] Exporting full API surface of kotlinx.coroutines causes runtime crashesKT-87875[Swift Export] Reverse bridges don't work with overloadsKT-88386[Swift Export] SwiftExportConfig.errorTypeStrategy with SpecialType generates incompilable codeKT-88809[Swift Export] intersection override with final implementation fails to compileKT-88740[Swift Export] declaration with internal OptIn fails to compileKT-88669[Swift Export] abstract class with multiple interfaces with same declaration fails to compileKT-87398Swift Export: issues with updating a user projectKT-88739[Swift Export] function returning MutableList fails to exportKT-87457Swift Export: NSInvalidArgumentException in _Kotlin_SwiftExport_wrapIntoExistential when Compose renders first iOS frameKT-88330KotlinExistential has no _createClassWrapperForExternalRCRefKT-88723[Swift Export] Support factory fun name based on suffixKT-88682Swift Export: can't export enum class implementing a sealed interfaceKT-88495[Swift Export] KDoc support: text after the@seeidentifier is droppedKT-88378[Swift Export] Special characters in interface namesKT-88474[Swift Export] Typealias for inner interface is internalKT-88473[Swift Export] Can't implement sealedType function for leaf interfaceKT-88368[Swift Export] OptIn receiver extension in interface fails to compileKT-87697[Swift Export] conflicting ObjC marker namesKT-87391[Swift Export] object returned from a function as an interface should be castable to a last public class, if that class conforms to that said interfaceKT-88224[Swift Export]@escapingis emitted on a variadic closure parameter, which Swift rejectsKT-87791[Swift Export] OptIn interface member with default implementation fails to compileKT-88019Swift Export: parameter names in top level functions are not escapedKT-88171[Swift Export] enable KDoc exportKT-87874[Swift Export] Generic start project param in closure fails to compileKT-87798[Swift Export] generic sealed interface fails to compileKT-87808[Swift Export] Nested generic fails to compileKT-87236[Swift Export] interface mem