fix(deps): update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.4.21 #379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/kotlin-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This MR contains the following updates:
2.1.20→2.4.21Release Notes
JetBrains/kotlin (org.jetbrains.kotlin:kotlin-gradle-plugin)
v2.4.21Backend. Wasm
KT-89267K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastExceptionJVM. Reflection
KT-89280NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer classKT-80710Reflection: change KCallable representation to avoid dependency on K1JavaScript
KT-89449Kotlin/JS: Member names no longer minified in productionKT-89363KJS. Regular class with companion can't extend external classTools. Compiler plugins. Serialization
KT-89275Kotlin/Wasm: Invalid Wasm is emitted for a@Serializablegeneric class with a class upper boundTools. Gradle. Native
KT-89285SwiftPM import results in flooded logKT-86251K/N: Flaky linkDebugTestLinuxX64 failure with "truncated or malformed archive" on libstdlib-cache.aTools. Scripts
KT-89247Kotlin Script: NoClassDefFoundError on 2nd execution with transitive dependency from imported scriptKT-89220JSR-223: generic Java bindings break all subsequenteval()callsKT-88458Audit closeable resource usageKT-88453VirtualFileScriptSource.textleaks an unclosed file stream — script source file handle held until GC, blocks file deletion on Windowsv2.4.20Analysis API
KT-86546Check suspicious when over ConeKotlinType in ConeTypeCompatibilityCheckerKT-85418Implement an API for accessing deserialized file annotations in Analysis APIKT-74448K2. False positive MISSING_DEPENDENCY_SUPERCLASS in LinkedListTest.kt, kotlinx.coroutinesKT-85856containingSymbol of constructor property differs for local and non-local classesKT-65417K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source setsAnalysis API. Code Compilation
KT-76457K2 IDE / KMP Debugger: KISEWA “Cannot compile a common source without a JVM counterpart” on evaluating inline fun from common module inside jvmAnalysis API. FIR
KT-70552No expects for actualKT-69727K2 IDE. Wrong error in the editor on callingclonefunction of actual enum instance in non-jvm platformKT-69726FP errors on declaringfun clone()in actual enum in not-jvm source-setKT-86014Types are broken after remove parameter through change signatureKT-86363KotlinIllegalArgumentExceptionWithAttachments: No dangling modifier found on companion blocksKT-86147Dropkotlin.parallel.resolve.under.global.lockregistry keyKT-85543Avoid lazy resolve for the contracts phase if no constracts might be resolvedAnalysis API. Infrastructure
KT-84914Do not publish analysis-api-test-frameworkKT-86986kotlin-compiler-common-for-idebundles unrelated Analysis API modulesKT-86186Analysis API: Codebase tests run twice in some analysis modules — pick a single JUnit runner and migrateKT-85360Drop kotlin-compiler-testdata-for-ide artifactKT-85585Simplify the dependencies graph for the Analysis API modulesKT-85381Remove tests for the FE10 implementationAnalysis API. Light Classes
New Features
KT-84645Support resolving to companion block members & extensions from Java (light classes)KT-80775Support PsiClass#getRecordComponents in light classesFixes
KT-57537SLC: propagate default parameter value from (@JvmOverloads)expectdeclarations toactualdeclarationsKT-85040[Analysis API] Improve Java / Kotlin interop in KMP projectsKT-87301SymbolLightAccessorMethod#isValid returns false for delegated propertiesKT-87171SLC: non-mapped Kotlin collection supertype is dropped from supertype listKT-87250JvmExposeBoxed: light classes shouldn't be autogenerated for private declarationsKT-70428AA: good code is red when a Java class extends a Kotlin class implementing MutableList by delegationKT-63568Symbol Light Classes: KtAnnotationApplicationWithArgumentsInfo.normalizedArguments() may work incorrectly when psi is not setKT-36740MPP: False-positive incompatible types in .java when using expect-class returned by non-expect member from common when actual is actual typealiasKT-67749Analysis API: Symbol Light classes should be available only to pure JVM sourcesKT-68169K2 IDE. KMP. False positive type mismatch in java file of jvm source-set when using common declaration which expects StringKT-37783KMP Java Interop: JVM-only methods on actual superclass not resolved in Java for common subclassKT-40059Provide type correction for expect/actual types used from Java-codeKT-71429MPP: False positive "Function1 is not a functional interface" when calling code from Common in JavaKT-70426SLC: kotlin.Collection#size is not exposed by defaultKT-60480Symbol Light Classes: Classes implementing kotlin.collections.* interfaces don't implement all methods from the corresponding java.util.* interfacesKT-36991IDE: "both methods have same erasure" for Java classes directly or indirectly extending Kotlin collectionsKT-22594KotlinCollection.getSize is not highlighted as an error in JavaAnalysis API. PSI
KT-84925Move KtReference to the Kotlin IntelliJ pluginKT-85052Move mutation methods out of the Kotlin PSIKT-85427Use factory-like pattern instead of reflection in KtNodeTypeKT-84789Ensure allKtClassBody.parentusages are correctKT-85154PSI: "AE: parent is ERROR_ELEMENT" with top-level destructuring declarationAnalysis API. Providers and Caches
KT-82220Analysis API: Support platform-specific session components and checkers in metadata sessionsKT-76526Incorrect built-in module is provided for non-JVM sources in StandaloneAnalysis API. Standalone
KT-83191Analysis API: JvmDependenciesIndexImpl performs very poorly for large classpathsKT-61404Analysis API: implement proper library publishing structureKT-85112AA does not see packages from unpacked klibsKT-86417Support parameters in 'getExpectsForActual()'KT-84916Metadata stub deserializers aren't properly set up for Analysis API StandaloneAnalysis API. Stubs and Decompilation
KT-86250KotlinIllegalArgumentExceptionWithAttachments: No fir element was found for KtDestructuringDeclaration on destructuring declaration typingKT-86520KotlinDeclarationInCompiledFileSearcher doesn't support visibility-mangled declarationsKT-64901Inconsistency between AST and Stub tree in the case of non-local destructuring declarationsKT-84444Support stubs for companion blocks & extensionsAnalysis API. Surface
New Features
KT-73214AddKaScope#declarationswith name filterKT-69085Provide API to retrieve label/name from KtFunctionLikeSymbolKT-70771KaLocalVariableSymbol: supportisDelegatedPropertyKT-85037Add API for KaFunctionType's returnType modificationKT-80460AA: IntroduceKtExpression.isStableForSmartCastingAPIKT-66566AA: api to create functional typesKT-65912Analysis API: Implement type building API for all KtTypePerformance Improvements
KT-70021Analysis API: optimize KaFirExpressionTypeProvider.expressionType for simple casesFixes
KT-66039K2: Analysis API: redesign resolution APIKT-86394Resolve from KDoc reference is inconsistent with source codeKT-87337Integrate KaContextParameterOwnerSymbol into KaCallableSymbolKT-78234Analysis API: Context parameters for accessorsKT-86786Investigate suspicious when over ConeKotlinType in ConeKotlinType.getDirectSupertypesKT-72902Shouldn'tKaSymbolProvider#findClassreturnKaNamedClassSymbol?KT-87237No expected type insidearrayOfin annotation entriesKT-87143findKDocreturns parent property KDoc for accessors of an overriding propertyKT-83224Support "Compile-time functions" in the Analysis APIKT-87174Expected class KaFirSymbol instead of class KaFirPackageSymbol exceptionKT-87199[Analysis API] RemoveKaEnumEntryInitializerSymbolKT-85382Remove the FE10 implementationKT-70774Unary operators on literals are not resolvableKT-85206Provide information about potentially removable context-sensitive resolution qualifiers via Analysis APIKT-86872KtOperationReferenceExpressionshould beKtResolvableCallKT-85800Analysis API: The internal utilityPrettyPrinteris used in the public API surfaceKT-73796Consider "KaAnnotation#useSiteTarget" removalKT-70794K2 IDE: Reference to object does not resolve as LHS in "plusAssign" assignment expressionKT-86757Flaky annotations result for@allannotation on a backing fieldKT-86681[Analysis API] MoveisDelegatedtoKaVariableSymbolKT-86685collectCallCandidates works incorrectly for a constructor vs. a companion invokeKT-86514No expected type within collection literal in annotation entry using array rather than varargsKT-76076K2 AA: safe call expression navigates to parent array index access expressionKT-86418Support property accessors in 'getExpectsForActual()'KT-71312KaFirPsiJavaClassSymbol.{hasAnnotations, annotationSimpleNames}is inconsistent withFirJavaClassimplementationKT-86248isUsedAsExpressiontrue for typealias lhs in ::KT-85778Analysis API: Ensure that all public endpoints in implementation modules are internal or opt-inKT-78285resolveToCallCandidates inconsistent behaviour with invoke operator and constructorKT-85852CCE in buildClassTypeKT-85989Super type references should be aware of type alias constructorsKT-84184[Analysis API] Provide a unification substitutor APIKT-84584Support companion extensions and blocks in the Analysis APIKT-84932Deprecate utilities exposed through analysis-internal-utilsKT-73059Consider dropping of KaOriginalPsiProviderKT-73050KaFirSymbolRelationProvider#expectsForActual: suspicius logic for KaReceiverParameterSymbolKT-71101[AA] Consider getting rid of KaTypeNullabilityBackend. J2KLIB
KT-88165Add Support for -XheaderModeType=compilation to improve header compilation performanceKT-86239[JKLIB] Investigate which type system context is needed in JklibIrLinkerKT-88306[JKLIB] Unbound symbols for kotlin.coroutines.SuspendFunctionNKT-88120[JKLIB] Add -jvm-target to K2JKlibCompilerArgumentsKT-88176[JKLIB] DeserializationStrategy.WITH_INLINE_BODIES when deserializaing dependenciesKT-88163Allow to disable firAggressivePrunner for JklibBackend. Native. Debug
KT-85264[Native] Stepping trace starts with// test.kt:1 boxin some debug stepping testsKT-81740Native: importing konan_lldb.py to lldb prints a warningBackend. Wasm
Fixes
KT-73452K/Wasm: turning on range checks by defaultKT-83171K/Wasm: Investigate import.meta usage in mjs filesKT-83159K/Wasm: generate one common base class fun interfaces (including Function*)KT-82843K/Wasm: pass a lambda call helpers to convert funs as an argument instead of exporting themKT-86123[Wasm] Callable reference refactoring (KT-83159) broke klib binary compatibility with libraries compiled by Kotlin 2.0.xKT-83356K/Wasm: Difference in behavior on nested class initialization (for enums?)KT-87639[Wasm] Multimodule wasm fails on Pointer usagesKT-87583Wasm IC cache is not invalidated when kotlin.wasm.compilationMode changes causing IndexOutOfBoundsException in WasmDeserializerKT-84267K/Wasm: init order of companion objects is different from JVMKT-86192K/Wasm: Raise a warning on usage of top-level require in JsFunKT-86242K/Wasm: deprecate and prohibit usingwasmExportsKT-86245K/Wasm: provide an API to get a reference to wasm memoryKT-84610[Wasm] Failed to compile klibs in IC modeKT-87078Wasm/JS: OutOfMemoryError (or BufferUnderflowException) during incremental compilation of multiple files with@JsExportKT-76207K/Wasm: prototype generating suspend functions with stack-switching proposalKT-86166[Wasm] Make possible to have passing test in multimodule but having it fail in monolithKT-71039[Wasm, IC] Investigate synthetic function types loadingKT-71505[Wasm, IC] Incremental step can produce wrong main function callKT-86822K/Wasm: don't cast the result of calling callable references with Unit return typeKT-86180[Wasm] backward compatibility is broken in 2.1->2.2 by changed order of type parametersKT-86640[wasm]: Single-module test failures with companion object initializersKT-66105Wasm: SyntaxError: Identifier 'box' has already been declaredKT-83245K/Wasm: Run stepping tests with local variables with K/WasmKT-86478K/Wasm JS: StringBuilder.setLength crashes when growing with js-string builtinsKT-84667wasm: Add general support for custom sections/annotationsKT-85506[Wasm/WASI] Stdlib readLn and readlnOrNull implementationKT-85270K/Wasm: incremental compilation fails with NoSuchElementException when a stdlib call is removedCompiler
New Features
KT-73431Unresolved reference errors should state the type they're acting onKT-80373Add initial support for release compiler cachesKT-84618Emit a warning when an undesrcore variable is assigned to a Unit expressionKT-86409[KMP] Create JVM IC metadata outputKT-84295Support Companion BlockofOperator for Collection LiteralsKT-84956Resolve of references to static & companion object members of generic classKT-85925Native: rework virtual trampolines machineryKT-86657Native: turn on incremental compilation by defaultKT-86018Short-form of name-based destructuring for multi-field value classesKT-86406Swift Export: support supercalls for cross-language inheritanceKT-77616Native: consider adding an annotation that enforces thread state switching for a@SymbolNameexternal fun`KT-86410[KMP] Implement acceptance of JVM IC metadata from previous compilationKT-85593ELA: Support multiple lambda argumentsKT-83040Collection literals: ensure normal interaction with CFGKT-84333Collection literals: type inference in delegate expressionKT-84289Resolution to Companion Block & Extension Invoke OperatorKT-82961Type inference from upper type for type parameters designed for tracking of checked exceptionsKT-81444False positive: "Overload resolution ambiguity" with@OverloadResolutionByLambdaReturnTypeand multiple lambda parametersKT-75736Enable reading/writing annotations in metadata on JVM by defaultPerformance Improvements
KT-85621Native: fix optimization in CastsOptimizationKT-69758FastJarFS - avoid copying data on inflating (JDK 16+)KT-85647Compilation performance regression in AbstractFirDeserializedSymbolProvider since 2.3.20KT-86104[JVM] use static methods/fields of KTypeProjection in typeOf generated bytecodeKT-86084IDEA freezes when a lot of properties are modified to lazy delegatesKT-83068Investigate long compilation times with many generics & overloadsKT-66469Long compilation with mockk importKT-79677Remove meaningless LVT recordsFixes
KT-88953CCE caused by suspend conversion of nullable argument to nullable expected typeKT-85842Collection literals (and CSR): internal failure when lambda is analyzed during inference of outer callKT-86751IntroducedAt: Do not generate@IntroducedAtoverloads as syntheticKT-81708K/N incremental compilation:No module deserializer for FUN name:writeObjectKT-82510K/N, IC: "Undefined symbols for architecture arm64" for iosSimulatorArm64 withkotlin.incremental.native=trueKT-88316K/N: StackOverflowError in CastsOptimization when two nullable local variables are assigned to each other across nested loopsKT-80841Confusing positioning of NO_VALUE_FOR_PARAMETERKT-85300Improve message for UNRESOLVED_REFERENCE_WRONG_RECEIVERKT-87983CCE on member extension property delegated to bound property referenceKT-85403kotlin.NoWhenBranchMatchedException on Kotlin Native with sealed interfaceKT-87922K1FakeDescriptorsForReferencesKt classes duplicated between kotlin-scripting-compiler-embeddable and kotlin-build-tools-implKT-87499ClassCastException "Float cannot be cast to Unit" when a suspend function's result is discarded in a when-branchKT-85656[NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS] False negative for nested type aliasKT-85641Nullable-marked object qualifiers in LHSs of callable referencesKT-86957Warning on the underscore variable is not reported for java.lang.Void callKT-87261K/N debug: 'is' check miscompilation — local variable reports wrong type when two smart-cast extractions precede an inline loopKT-87577Compiler crash on red code with ambiguous type parameter used as expressionKT-80867[Native] Stack allocation is blocked after cross-module inlining of stdlibKT-86949Native: ComputeTypesPass handles type checks across loop iterations wrongKT-86959Native: OptimizeCasts gets confused by "complex" terms leaking between different loop iterationsKT-78079Enable generation ofwhenusing invokedynamic by default for JVM targets 21+KT-86525JvmExposeBoxed: Inconsistent number of parameters during reflectionKT-72999K/N: Do not considerIrTypeOperatorCallas a tail call expressionKT-84802Add new synthetic class flag to JVM metadataKT-87606Compiler crash on red code with redeclaration of type parameter which is used as expressionKT-85888Native: incremental compilation blows up when a method changes from open to finalKT-87335Context parameters: wrong LINENUMBER emitted for context argument loads in JVM bytecodeKT-84344Disambiguate fake source elements for source-based symbol IDsKT-86618Collection literals: internal PCLA failure with reassignmentKT-85703Drop pre-2.0 language features from K2 & common compiler codeKT-87245Report UnsupportedFeature on ExplicitContextArgumentKT-80227Support unnamed context parameters in evaluationKT-72706Confusing "INVISIBLE_REFERENCE" when calling private constructorKT-86110K/N Incremental compilation: stale cache is reused after enum entry reorderKT-86133K/N IC: stale cache is reused after reified inline body changeKT-30728"VerifyError: Operand stack underflow" on crossinline lambda usage inside inline function in anonymous objectKT-87507False-positiveABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTEDon fake-override with value parameter of type missing in dependenciesKT-87439Postpone UnitConversionsOnArbitraryExpressions indefinetelyKT-87434JAVA_CLASS_ON_COMPANION not reported when companion accessed through typealiasKT-64622[K/N]arutility fails with symbol@in module/klib name on Linux with static cacheKT-84037Native: reworkarinvocations in the compilerKT-87339JVM: Support recursive type provided as an argument of typeOfKT-86551Check suspicious when over ConeKotlinType in FirExposedVisibilityDeclarationChecker#findVisibilityExposureKT-87395StackOverflowError in return value checker when a Java class member is annotated with the class's own nested annotationKT-87290Investigate possible bug in value class deserializationKT-61141K/N: irText tests failed with K/N irText first runKT-85764Native: Prohibit compiling sources in 'kotlin' package by defaultKT-86469Check 'when's over 'ConeKotlinType' which could miss some branches in DFAKT-87253MissedConeCapturedTypecheck in processing ofequalscontractsKT-84522Refactor FirResolvedQualifierKT-84299resolvedToCompanionObjectis not set in some situationsKT-87327JVM IR: NullPointerException in JvmInlineClassLowering when using == between value of generic value class and another value classKT-86948Native: CastsOptimization merges results of type checks across loop iterations wrongKT-86947Native: CastsOptimization drops side effects of always-nullsafe castsKT-87276Drop or move ConeTypeCompatibilityCheckerKT-78623No-arg constructor should be generated if all parameters are optional, even when one of the parameters is inline typeKT-86886Kotlin Lombok: compiler crash with IllegalArgumentException on builder with a single type parameterKT-83880Consider makingOPERATOR_RENAMED_ON_IMPORTa warning (instead of error)KT-70461K2: "Inline class types should have the same representation" caused by value class and smart checkKT-87140K/N: Test generation leaksBaseClassSuite'sINSTANCEtype parameterKT-87291Enable ProhibitScriptTopLevelInnerClasses in 2.5KT-87226CompanionBlocksAndExtensions: COMPANION_EXTENSION_RECEIVER_IS_OBJECT diagnostic is absent when object used via typealiasKT-87058Investigate abandoned language featuresKT-86655mismatched mutability annotations in overriding lead to misaligned behavior in warn-mode and strict-modeKT-85169Return value checker: RETURN_VALUE_NOT_USED: object expression highlighted entirely instead of just the keywordKT-86464SupportisPublicAbiJVM metadata flag for anonymous and synthetic local classesKT-87083JVM: AssertionError in if UIntArray is declared in sourcesKT-87032JvmExposeBoxed: forbid private@JvmExposeBoxeddeclarationsKT-85954Implicit JvmExposeBoxed leads to IOOBE when data class constructor accepts nullable inline classKT-85955Implicit JvmExposeBoxed: double default constructor parameter leads to IOOBEKT-86523JvmExposeBoxed: Cannot generate code for exposed constructor with default parameter referencing another default parameterKT-86524JvmExposeBoxed: Collection does not implement abstract methodKT-86526JvmExposeBoxed: Sequence contains more than one matching elementKT-86865Support abstract full value classes with non-trivial constructorsKT-87016DropANNOTATION_ON_ANNOTATION_ARGUMENTdiagnosticKT-86615K2: Missing INVALID_CHARACTERS diagnostic for enum entry name with illegal JVM characters, leading to runtime ClassFormatErrorKT-86849Remove old@JvmInlinemulti-field value classesKT-87014[KGP] failing testSwiftExportCoroutinesKT-86481Compilation failure with spreadarrayOfinsidearrayOfKT-86996unwrapVarargValuedoes not consider some casesKT-86955K2: Companion block funs in interfaces have OPEN modality after Fir2IRKT-87035K2: Context parameter type leaks unsubstituted into callable-reference adapterKT-86940Diagnostic range of NONE_APPLICABLE in enum entry is hard to seeKT-86046Put@K1Deprecationto all public declarations of K1 modulesKT-86555CL-based annotation resolve: clean up CFG-related hacksKT-86482Collection literals: do not fallback if not supertype ofListis expectedKT-84154Invalid qualifiers with type arguments in package parts compile without diagnosticsKT-85288Consider dropping use-site target checks in checkRepeatedAnnotation and similar placesKT-85469Native: potential concurrency problem with cachesKT-81567Add a use-site warning if a@DslMarker-marked annotation is used on entities where it is a no-opKT-86853FIR:Char.codenot being const-evaluated under IntrinsicConstEvaluation featureKT-86877Postpone ELA-related language featuresKT-86852Initialize full value classes fields before calling superKT-86824Native: support spaces in paths for LinuxKT-85816Drop remaining usages of ComponentRegistrarKT-86534Extract reworked annotations resolution under separate language featureKT-82555@Deprecated(HIDDEN)` objects not skipped when resolving qualifiersKT-84626Try to combineFirConstChecksandFirExpressionEvaluatorKT-85291MFVC: consider analyzing the type of declaration instead of use-site target in AnnotationCheckerKT-86755False negative NATIVE_SPECIFIC_ATOMIC in type argumentsKT-86752K2: False negative NO_REFLECTION_IN_CLASS_PATH on type parameters, intersection types, captured typesKT-85972[ArrayEqualityCanBeReplacedWithContentEquals checker] Checker misses smart-cast array operands when the original type is a type parameterKT-85970[ArrayEqualityCanBeReplacedWithContentEquals checker] Warning message mentions ==/=== instead of !=/!== for inequality operatorKT-86705False positive REDUNDANT_SINGLE_EXPRESSION_STRING_TEMPLATE for nullable String? expressions with -WextraKT-86798Native: don't use stale incremental cache when a new compiler version is usedKT-86298LEAKED_IN_PLACE_LAMBDA when a lambda parameter is forwarded into an inline function parameterKT-76632K2: False positive "Assigned value is never read" with 'flatMap()'KT-86699Kotlin/Native: get rid of OptimizeTLSDataLoadsKT-86577Companion block member is determined as a fake overrideKT-86646IllegalStateException "unknown supertype kind null" when compiling data class with definitely non-nullable type parameter (U : T & Any)KT-86662Check for loss of ConeIntersectionType.upperBoundForApproximationKT-86629Approximation of Intersection Type to Upper Bound is Broken by Bang Bang OperatorKT-86115Platform declaration clash on no-arg constructor with@JvmExposeBoxedand@IntroducedAtKT-86643Warning for returning callsInPlace lambdaKT-86609MakeKDocSectionimplementPsiLanguageInjectionHostKT-86642Flexible type with nullable intersection types in both boundsKT-85148Native: check/fix KT-72710 Incorrect behaviour of tail call suspend functions optimizationKT-85230False negative deprecation diagnostics on import of member of nested classKT-62467K2: Result type of elvis operator should be flexible if rhs is flexibleKT-86319K2: StackOverflowError in AbstractConeSubstitutor with recursive Java type bound under mixed JSpecify@NullMarked/@NullUnmarkedKT-86512K2: Bad IR for adapted callable reference to function with generic vararg and optional parameterKT-85947Collection literals: internal failure when SAM is expectedKT-85535Collection literals: Migrate to new resolve in annotations under "-Xcollection-literals"KT-86468K2: False negative DSL_SCOPE_VIOLATION when type parameter has DSL-annotated boundKT-86292False negative: INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING reported for direct getValue call but not for equivalent by delegationKT-86467K2: False negative ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL with DNN, flexible, captured and intersection receiver typesKT-85848Recursion on value classes through type parametersKT-75874K2: Adjust the type mismatch diagnostic on lambda parametersKT-82456K2. Missing deprecation for object with invokeKT-86184KDoc: syntax highlighting incorrect when@param,@return, or summary line begins with a backtickKT-85454Make :compiler:android-tests:test cacheableKT-51400Additional independent candidate with@OverloadResolutionByLambdaReturnTypecould change inference resultsKT-86042Inference fixes lambda's return type variable too earlyKT-86327Add flag toLanguageFeatureenum to enable it in the latest language version testsKT-84718Provide information for simple names resolved through imports which might be resolved via context-sensitive in IDE modeKT-75112FE resolves wrong receivers order for property passed to delegateKT-86191Check not null on a dynamic-typed property leads to malformed CFGKT-86143operatorkeyword is allowed on arbitrary equals in enum entriesKT-73197Order-dependent choice of overload by lambda return type with UnitKT-86144Unresolved code in ambiguous plus assign is not reportedKT-86006CFG: Exponential growth when visiting unresolved delegates in FirLocalVariableAssignmentAnalyzerKT-86103Incorrectly reportedCONFLICTING_OVERLOADon companion memberKT-85965Native: incremental compilation blows up with NoSuchFileException: class_fieldsKT-86005Fix misuse of DeferredMethodVisitor.intermediate in AnonymousObjectTransformerKT-72840[JVM Inliner] Two failsAFTER mandatory stack transformations: incorrect bytecodeKT-84589ProhibitArray<Nothing>in lhs of::classKT-84766Kotlin/Native: separate compiler cache for latin1Strings=trueKT-82899Native IC: AIOOBE on coroutinesKT-85188Don't poison binaries with companion blocks & extensions for LV >= 2.5KT-80176ASSERT FAILED: SDE.c : 296 - bad SourceDebugExtension syntax - position 376 - expected ':'KT-84581Inline function with@JvmOverloadsproduces SourceDebugExtension attribute with invalid line numbersKT-85203Kotlin/Native: "Invalid LLVM module - Instruction does not dominate all uses" with nested inline suspend functions and withContextKT-85766Confusing error message "'this' is not defined in this context" on companion extension delegated propertyKT-85720K2: Missing null check in generic vararg function call when passing value of flexible typeKT-85701K2: Type parameter is out of bounds forIMPLICIT_DYNAMIC_CASTKT-82196False positive: "Recursive call is not a tail call" inside when/if with lambda and elvisKT-85841Error message for NULLABLE_ON_DEFINITELY_NOT_NULLABLE uses obsolete term for DNN typesKT-81932False positive TAIL_RECURSION_IN_TRY_IS_NOT_SUPPORTED caused by try in another branch inside tailrec functionKT-78443Refactor session component initialization for multi-target compilationKT-85661Lazy resolve for substituted property accessors with a contract doesn't workKT-84719Provide information for qualified types that might be replaced with context-sensitive simple names in IDE modeKT-85667Add experimental language version 2.6KT-85770Support companion block properties in interfacesKT-85168Generate static initializers as proper IR functionsKT-74516False negative TYPE_PARAMETER_AS_REIFIED for DNN typeKT-85733Illegal unqualified resolution to companion extension through scope linkingKT-85679Internal Compiler Error when trying to access a value parameter from companion blockKT-85358Native: roll back the workaround for KT-84678 once MapLibre has been properly fixedKT-81814Field name '$$context-Functor#1' cannot be represented in dex formatKT-6071Change USELESS_CAST warning messageKT-85626@JvmRecordin commonMain breaks compileCommonMainKotlinMetadata with "Cannot access 'java.lang.Record'"KT-85527Unmute Android tests after removing IGNORE_BACKEND_K1 directiveKT-84939Kotlin/Native: support llvm passes in -Xsave-llvm-ir-afterKT-85341K2."TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM" false positive on accesses to properties of an anonymous objectKT-84861Support Companion Blocks & Extensions in Scripts/REPLKT-84327Name-based destructuring conflicts with in-scope functionsKT-78678Checking for nullable type against nullable type falls back to inline-when generation mechanismKT-83652Confusing messages when using package parts with type arguments in qualifiersKT-75372Deprecate K1 compilerKT-80093Type inference depends on the presence of transitive dependencyKT-68933CompilationException: Back-end: Could not get inlined classKT-63746K2: JSpecify: If a class has a@Nullabletype-parameter bound, Kotlin should still treat unbounded wildcards like platform typesKT-17738Java cannot extend class implementing kotlin.collections.MapCompose compiler
Fixes
b/549552317Fixed a bug that, in certain cases, prevented execution ofnon-local return
statementsinside lambdas called fromwhenexpressions.
b/543684938Fix composable singleton in function with type parametersb/537617330Fixed a bug that caused miscompilation of cross-module callsto getters and setters, causing spurious runtime errors.
b/522127447Fixed a bug that was making the stability of pre-cast types beused in certain skipping checks instead of the stability of post-cast
types
b/489339299Move Compose runtime to a stable versionb/509945632Always wrap inline lambdas with a composable group with a groupb/422193018FixcallableInferenceNodeOfinComposableTargetChecker.ktIR. Inlining
KT-86558Forbid accesing volatile references after inliningKT-87272IR: Function value is inlined with out-of-scope type parameterKT-87274IR: Synthetic accessors are generated with out of scope type parametersKT-79065Try to removeNativeRuntimeReflectionIrBuilderKT-72464[Native][JS][Wasm] Non-local return through suspend conversion breaks the IR inlinerIR. Tree
Fixes
KT-69305Re-enable reporting out-of-scope type parameter usages during pre-lowering IR validationKT-86943Investigate if lambdas must be transformed into static or regular functionsKT-73921False negative: tailrec checkers with recursive functions (without tail recursion)KT-85896Type parameter is out of bounds (in setter) for a property with context parametersKT-85698Type parameter is out of bounds (in setter) for an extension property with type parameterKT-85575KLIBs: Add IR text & ABI dump tests for companion blocks and companion extensionsKT-87138IR: Rich callable reference to an inner-class member leaks outer class type parameters into the generated adapterKT-74938Use SYNTHETIC_OFFSET in IR fake overridesKT-87105[Tests][IR] Unify or split IR dump for different backendsKT-87292IR: Droplateinitmodifier fromIrFile.modulepropertyKT-86884IrTreeSymbolVisitor is not visiting symbols declared in non-final classKT-85147K/N: Segfault when calling SAM instance converted to type with nullable type parameter upper boundKT-86527Remove unreachable code from UpgradeCallableReferencesKT-85673ReplaceclassIdwithIrClassSymbolinIrAnnotationKT-85572KLIBs: New signatures for companion funs/valsKT-78175Remove remaining usages of attributeOwnerId outside of JVM backendKT-85573Store "companion parameter" in IR of funs/vals declared as companion extensionsJVM. Reflection
New Features
KT-73657Fix kotlin-reflect performance issues for reflection operations common for both reflection implementation: stdlib and kotlin-reflectFixes
KT-86477Reflection: test builtin class contentsKT-87369Reflection: KClass.members fails on Java class with self-referential raw type boundsKT-76521Reflection: change KType representation to avoid dependency on K1KT-85902Reflection: support call/callBy for companion blocks & extensionsKT-85903Reflection: do not inherit companion block members from supertypes inKClass.membersKT-86709Reflection: KRIE with Reaktor on fresh masterKT-86101Reflection: additional Java constructors are not added for mapped builtins in the new implementationKT-86545Reflection: extra Serializable supertype for non-mapped enum classes in "kotlin" packageKT-83677Reflection: aliased extension function type is rendered as non-extension in toStringKT-85836Reflection: KotlinReflectionInternalError on isSubtypeOf with definitely-not-null typeKT-83986Reflection: java.io.Serializable is not shown in supertypes of Int type in new reflectionKT-84495Reflection: "KotlinReflectionInternalError: Annotation class not found: kotlin/jvm/internal/EnhancedNullability" on Java Optional typeKT-86177Reflection: incorrect modality of Java constructors in the new implementationJavaScript
Fixes
KT-88571K/JS: "llegalStateException: Internal error: cannot find external signature" caused by@Serializableenum in 2.4.20-RCKT-87410[K/JS] Companion block initialization order of super types differs from JVMKT-86273@JsExport.Ignore does not work properly with data classes propertiesKT-85599Allow exporting annotation classes into JS/TSKT-86934K/JS: Stack overflow when implementing interface with suspend fun using anonymous objectKT-80188Design exporting of suspend lambdas into JS/TSKT-87127KJS:@JsPlainObjectfactory contains duplicated parametersKT-70622Kotlin/JS: Incremental compilation doesn't recompile kotlin js stdlib while changing a collectionKT-87307[JS] Reflection: runtime KClass of a Long value differs from Long::classKT-85990K/JS: Default parameter values ignored in@JsStaticsuspend functions when class is exportedKT-84992Remove body of isLongCompiledToBigInt intrinsic after boostrap version updatedKT-40768KJS: initialization order for companion objects (inherited classes) different from K/JVMKT-87074KJS: Fix inheritance issues in Analysis API-based TypeScript exportKT-75176Add infrastructure for bundle size testingKT-85616[K/JS] Add synthetic and internal compiler APIs into sourcemap'signoreListKT-70223Delete the source code for the legacy JS backendKT-73067Drop support for the legacy JS metadata from the metadata decompilerKT-82224Respect file-level annotations in Analysis API-based TypeScript exportKT-82340Implement supertype approximation in Analysis API-based TypeScript ExportKT-82317Support Kotlin collections in Analysis API-based TypeScript ExportKT-84710Kotlin/JS: Suspending default interface methods are not accessible on subclasses from JSKT-19819JS: source maps: write the longest common prefix of all paths to "sourceRoot" fieldKT-82266Support transitive export in Analysis API-based TypeScript exportKT-80991K/JS/Wasm interop: JsReference.get is easy to accidentally use in JS targetKT-85424Replace eachjscall withjsClassIntrinsicafter bootstrappingKT-84457KJS: Support implementable interfaces in Analysis API-based TypeScript ExportKT-85452K/JS: Cannot create static member with@JsStaticin non-companion objectKT-83462Usage of star projection makes any generic type not-exportableKT-85563Kotlin/JS: TypeScript mts files do not properly escape enum valuesKT-60899K2 JS: Implement warning NO_REFLECTION_IN_CLASS_PATHKlibs
Performance Improvements
KT-84837Introduce an index in IR linker for faster look up of suitable module deserializersFixes
KT-84821[K/N] Loadlibclangstubsfrom configured pathKT-87294[Wasm] Implement Wasi Klib backward compatibility testingKT-86320[PL] Replacing unusable classifiers with Any? type may cause a signature clashKT-86632KLIBs: Rework serialization logic for IrTypeAliasKT-87006Extract/remove K1-specific parts from :kotlin-util-klib-metadataKT-81947[Wasm] Klib backward and forward compatibility testingKT-81659Load symbols on 2nd compilation stage without frontend involvementKT-85611Change usage ofKlibCompilerDeserializationConfigurationin IntelliJ toCommonCompilerDeserializationConfigurationKT-86451Get rid of deprecated '-no-endorsed-libs' usages in Kotlin projectKT-85578KLIBs: New manifest property to indicate "new initialization order"KT-84836Minimize usages of IrBuiltIns in the KotlinIrLinkerKT-86037[Tests] Split test directive IGNORE_KLIB_BACKEND_ERRORS_WITH_CUSTOM_FIRST_STAGEKT-86228Simplify Klib's ReadBufferKT-58409[KLIB Reproducibility] File path separators should be platform-independent in KLIBsKT-74417Deduce the metadata version based on LV in KLIB-based backendsKT-76195CombinetoJvmMetadataVersionandtoKlibMetadataVersionKT-84750[K/N] Set "kotlin.native.home" appropriately in forward testing ofmaster-> 2.4.0-Beta2KT-85805AtomicfuNativeKlibSyntheticAccessorTestGenerated brokenKT-85587[Tests] Update test data so it ignores failing compatibility tests correctlyKT-85359ExportKlibToOlderAbiVersion with LV=2.2 is silently ignoredKT-85290Make :native:native.tests:klib-compatibility:testMinimalInAggregate cachableKT-85080Klib/IR Tests TC configuration -- need to explicitly download the necessary dependenciesKT-84990Investigate the usage ofallDependencyModulesin IR linkerKT-84349[Wasm] Implement forward klib compatibility testingKT-71414KotlinLibraryResolver.resolveWithDependencies was evolved in binary incompatible wayLanguage Design
KT-86089Explicit context arguments: Stable releaseKT-11914Confusing data class copy with private constructorKT-86761DM 2026-06-08: Another round on ELA (2)KT-86895Make full value classes poison buildsKT-86201Name-based destructuring stable release ofonly-syntaxin 2.5KT-7882Generic vs Non-Generic and implicit Unit return typeKT-78796Decide the future of the AllowEagerSupertypeAccessibilityChecks language featureLibraries
New Features
KT-30270Provide allDistinct() and allDistinctBy{} for iterablesKT-10380allEqual function for IterableKT-31305Support JUnit5-like assertions with message suppliers in kotlin-testKT-86595Introduce StackTraceRecoverable interface into the standard libraryKT-86766Add@EqualityBounddeclaration to stdlibPerformance Improvements
KT-86010K/N, K/Wasm: MatchResultImpl function arguments checks takes significant portion of time for regex with capturing groupsKT-86032K/N, K/Wasm: BitSet::get allocates objects for each accessFixes
KT-86329Update kotlinx.collections.immutable in Kotlin project to 0.5.0KT-86053Update kotlin-metadata-jvm for the companion blocks and extensionsKT-87173isSortedBy and isSortedByDescending inline their selector twice at every call siteKT-87166allEqualBy inlines its selector twice at every call siteKT-85020Path.copyToRecursively silently corrupts directory structure when copying across file systems with different path separatorsKT-86696return-value-checker: false positive Path.setPosixFilePermissions and Path.setLastModifiedTimeKT-86470Stdlib doc: Wrong timestamp in kotlin.time.Instant.parse example (leads to InstantFormatException)KT-80654K/N and K/Wasm: implement missing Regex testsKT-85326Libraries: rangeUntil docs sample code uses a rangeTo exampleKT-82505API reference: add links to array transformations returning arrays from their list-returning counterpartsKT-57883Description and code mismatch in CoroutineContextImpl.ktKT-65526Rewrite builtins as expect-actualNative
KT-74844kotlin.native.internal.FileFailedToInitializeExceptionwhen running native tests with Kotlin 2.1.20-Beta2KT-80830[K/N] -Xruntime-logs doesn't work with cachesKT-36076KotlinNullPointerException: Gradle parallel compilation fails on 1.3.70Native. Build Infrastructure
KT-86889Kotlin/Native: restore benchmarks after bootstrap updateKT-82607[K/N] Dist build fails when gradle daemon was started on a JRE (i.e., without JNI headers)KT-85451Native: migrate the remaining tests to testFixturesKT-86725Kotlin/Native: make KonanCacheTask aware of per-file cachesKT-85823Kotlin/Native: delete outputs in :kotlin-native:distNativeLibsKT-85522Kotlin/Native: llvmLinkBreakpadMainMacos_arm64 failsNative. C and ObjC Import
New Features
KT-86654[K/N]CValuesRefoverload for c-string parametersPerformance Improvements
KT-84043Native: findMacros takes a lot of time with -fmodules in cinteropFixes
KT-33092Kotlin/Native doesn't mangle names clashing with standard macros when generating Objective-C headersKT-85765Prohibit emitting C-interop KLIBs withkotlinorkotlinx.cinteroppackagesKT-87461Native: platform.darwin cache build failure with symbol is already boundKT-83940Generate IR from C-interop KLIBs without descriptorsKT-84665Don't use KLIB resolver in the CInterop toolKT-86263Generate IR for forward-declared classes without descriptorsKT-86871C-interop Klib caches are not deterministic after KT-83940KT-86559[K/N] More stable@CCallidsKT-73656Native:@OverrideIniton a capturing local class constructor causes a compiler crashKT-85399Kotlin/Native: TypeCastException when casting ObjC Protocol MetaClass with genericSafeCasts enabledKT-85508K/N: TypeCastException when using nw_parameters_create_secure_tcp block parameter on 2.3.20Native. ObjC Export
KT-86443Native: crash in SwitchThreadState when KotlinBase methods are called from a thread without an initialized Kotlin runtimeKT-85423Native: ObjC export throws and breaks IDE highlighting and navigation support due to mangling inconsistencyKT-86069Native: the annotation target for@ObjCEnum.EntryName` is wrongKT-83504ObjCExport: Source unresolved dependencyKT-83505ObjCExport: Transitive unresolved dependencyNative. Runtime
KT-85897[K/N] C Export sometimes hangs on termination on mingwKT-85811K/N: FirNativeGCTestGenerated.testMemoryDump failsKT-85882Performance improvement in Kotlin_getCurrentStackTrace: use vectorized/range-checkless copyKT-85077Native: if CoreSymbolication fails, report this to users with a troubleshooting guideNative. Runtime. Memory
KT-86432Native: PMCS GC bug - alive object seems to be freed prematurelyKT-85457Native: TSAN tests fail with Xcode 26.4Native. Swift Export
New Features
KT-80000Swift Export: Sealed ClassesKT-66888Swift Export: cross-language subtypingKT-87503Swift Export: Support properties in cross-language inheritanceKT-87068Swift Export: default interface method implementationsKT-86890Swift Export: Support async calls in cross-language subtypingKT-79477Make Swift Export work handle@OptIndeclarations wellFixes
KT-66890Swift Export: cross-language protocol conformanceKT-66889Swift Export: cross-language inheritanceKT-86509[Swift Export] Probable race in testsKT-87340[Swift Export] runtime crash during existential creationKT-87462[Swift Export] variadic params in functions requiring reverse bridges generates incomparable codeKT-87221[Swift Export] abstract class with inherited interface fails to compileKT-87229[Swift Export] OptIn property inside interface fails to compileKT-86463Swift Export: nested sealed interface in kotlinx-datetime (DateTimeFormatBuilder.WithDate) is referenced but never emitted, causing Swift compile errorKT-87088Protocols that came from cinterop should lose theProtocolsuffixKT-87150[Swift Export] member function with param named result fails to compileKT-87144[Swift Export] nullable closure in member function fails to compileKT-87106[Swift Export] suspend closure with context parameter fails to compileKT-86780Native: Swift Export coroutines tests are flaky on the CIKT-87022[Swift Export] Optional Range results in incompilable codeKT-86650[Swift Export] Trampoulinebuilding for a function with changed argument name produces incorrect code.KT-85870[Swift Export] Invalid unavailability propagation to protocol membersKT-85918[Swift Export] unavailable operator function fails to compileKT-85869[Swift Export]releasefunction conflicts with unavailableNSObject.releaseKT-85868[Swift Export] Factory function conflicts with class nameKT-85871[Swift Export] 'AbstractCoroutineContextKey' is inaccessible due to '@_spi' protection levelKT-85788[Swift Export] Doesn't resolve generic upper boundKT-85534[Swift Export] Fails to bind private class implementing deprecated public interfaceKT-85784[Swift Export] generic class with multiple upper bounds failsTools. BCV
KT-85950Add support of "com.android.kotlin.multiplatform.library" plugin [ABI validation]Tools. Build Tools API
New Features
KT-84401BTA: implement Kotlin/JS incremental compilation supportKT-78206BTA: implement basic Kotlin/Wasm compilation supportKT-78204BTA: implement basic Kotlin/JS compilation supportKT-78207BTA: implement basic Kotlin/Wasm binaries linking supportKT-78205BTA: implement basic Kotlin/JS binaries linking supportKT-78224BTA: implement support for metadata compilationsKT-85663Make BTA JS Compiler Arguments Type-SafeKT-66425BTA: implementClasspathEntrySnapshot.hashCodeKT-84598[BTA] Expose API Version via Public PropertyKT-85421BTA: validate arguments for invalid characters and guide users to feedback issueFixes
KT-85556BTA: SearchPathType compiler arguments (classpath, -Xklib, -Xmodule-path) not resolved to absolute pathsKT-86703Support JVM classpath metadata for KMP incremental compilationKT-86876Migrate WasmBinaryTransform to BTAKT-78209BTA: split Kotlin/Wasm compilation and linking argumentsKT-86916[BTA] adopt availableSinceVersion for WASM option holdersKT-85696BTA: deepCopy() in JvmCompilerArgumentsImpl uses string round-trip, corrupting delimiter charactersKT-85958argumentsToStrings produces corrupted arguments when value starts with "@"KT-86059[BTA] Handle enum parsing errors related to case sensitivityKT-86156BTA: report all invalid argument values at once instead of stopping at the first oneKT-86702[BTA] Drop JVM classpath metadata argumentsKT-86676Add Gradle property to control KMP JVM metadata usage in incremental compilationKT-87040Track source-file-to-metadata-fragment mapping when writing KLIB metadataKT-78208BTA: split Kotlin/JS compilation and linking argumentsKT-86243[BTA] Compat package has wrong version of compiler on compile classpathKT-88348MessageCollector in IncrementalCompilerRunner drops diagnostics IDsKT-87743MakeKotlinCoreEnvironment.disposeApplicationEnvironment()unnecessary for K2 BTA compilationKT-87370JS/Wasm history IC fails when compiler plugin generates callablesKT-87597[BTA] KotlinCompilationProcessFailedException causes LinkageErrorKT-87034Introduce SerializedFirMetadata to track source file per metadata fragmentKT-87152Decouple JVM IC-specific metadata writing logic from common metadata componentsKT-85504Kotlin Daemon crashes if there is a typo in compiler args added as key-value freeCompilerArgsKT-82986BTA: setting unknown options may pass silentlyKT-86734Add Kotlin 2.4.0 into backward-compatibility testsKT-85093[BTA] Resolve Forward Compatibility Test Blocker for X_IGNORED_ANNOTATIONS_FOR_BRIDGESKT-85787BTA: Distinguish typed argument values from raw string values in compatibility test descriptorsKT-85736BTA tests: automate detection of missing versions in compatibilityTestsVersionsKT-85505Kotlin daemon crashes if "-Xwarning-level=" compiler option is added with a syntax errorKT-86247[BTA] Improve -Xjsr305 parser error message: include the full failing entryKT-86117CRI:fileIdis hashed from the absolute source path, not the stored relative pathKT-85722[SSoT, JS/Wasm] Switch to "nopack" naming for argument controlling packing of klibs to unify with Native backendKT-85702[SSoT] Simplify compiler argument enum serialization by replacing per-type serializers with a generic contextual serializerKT-85607[BTA] -Xignored-annotations-for-bridges missing forward compatibility support (API 2.3.20 + impl 2.4.x+)Tools. CLI
New Features
KT-86473Report usages of removed CLI arguments as warningsKT-86202Warn against disabling a language feature with a parametrized compiler argument that's already stablePerformance Improvements
KT-87868In-process compilation via CLI/Build Tools API pays a large ThreadMXBean.getCurrentThreadUserTime penalty on Linux: PerformanceManager.measureSideTime measures unconditionally around every class file readFixes
KT-88475IncrementalCompilationComponents instances are not being called anymoreKT-85591RemoveXklib-normalize-absolute-pathcompiler argumentKT-86314Add a CLI flag which controls ELA statusKT-86284Deprecate using PSI mode from compiler CLIKT-86405Generalize reporting of deprecated CLI argumentsKT-87057Return a legacy JVM KMP IC implementation until the proper one is implementedKT-85003Fix name check for@JvmNameand@JvmExposeBoxedKT-86746Drop all org.jetbrains.kotlin.asJava usages from CLIKT-85813Inconsistent behavior of -Xcontext-parameters warning depending on daemon/in-processKT-85920Remove MessageCollector Usage from ErrorReportingContextKT-85898Register all KtDiagnosticsContainersKT-85187Add compiler argument for companion blocks & extensionsTools. CLI. Native
KT-87123Phased klib compiler does not read-native-libraryargumentsKT-85538Native: allow using JNI in CLI tools on JDK 24+ and Unsafe on JDK 24Tools. Compiler Plugin API
KT-63881Allow registering generated properties in IrGeneratedDeclarationsRegistrarKT-86860GeneralizegeneratePropertiesto supportFirVariableSymbolbut not onlyFirPropertySymbolTools. Compiler Plugins
New Features
KT-86842Lombok: introduceARGUMENT_IS_NOT_SUPPORTEDdiagnosticFixes
KT-86145Support for@EqualsAndHashCodeannotation on kotlin classesKT-81622Support@Slf4jand other logging annotations (@CommonsLog,@Flogger,@JBossLog,@Log4j,@Log4j2,@XSlf4j)KT-85758Support for@Logannotation on Kotlin classesKT-88179Power-assert: IrGenerationExtensionException (StringIndexOutOfBoundsException) when assert() wraps a context-parameter function callKT-87137Lombok: builder methods aren't resolved if use an existing builder and genericsKT-87044[DataFrame] Plugin generates a spurious backing field for generated column accessorsKT-86225Atomicfu generates IR with out-of-scope type parametersKT-87153Lombok: merge modulecommonintok2KT-86980Delete sources of K1 parts of compiler pluginsKT-87053Lombok:@NoArgsConstructorfactory references an out-of-scope type parameter of a generic classKT-86839Handle@Logon Java classesKT-86985Can't use@JvmNameon class member properties of JPA entities even when using the 'final' modifierKT-86286all-openplugin makes@JvmRecordclasses non-final, causing compilation error "'@JvmRecord' class must be final"KT-86774PowerAssert: allow changing the last parameter to a different type if not specifiedKT-86620Lombok incorrectly detects clashing constructor with varargs argumentKT-86773PowerAssert: sorting of possible overloadsKT-83121Lombok. A constructor without parameters is available for a class with@Dataand staticConstructorKT-84059Lombok. CANNOT_INFER_PARAMETER_TYPE for toBuilder function if@Builderis applied to a generic classKT-84058Lombok. NoSuchMethodError for the builder function when@Builderis applied to the methodKT-86058Check the frontend-owned plugins for the Companion blocks and extensionsKT-86065Scripting plugin addsHashMap<K, V>(with HashMap's own out-of-scope type parameters) as a supertype of the synthetic REPL state classKT-86064Plugin sandbox generatesIrClassReferenceImpltyped asKClass<T>whereTis KClass's own type parameterKT-86063PowerAssert plugin generates IR call tolistOf<T>with an out-of-scope type parameter as its typeKT-86070PowerAssert: Enum entries should not be displayedKT-85472Compiler crash if use unexpected value of AccessLevel in a lombok annotationKT-85693Don't generate declarations withNONEaccess levelTools. Compiler plugins. Compose
KT-88028Compose compiler: IndexOutOfBoundsException in ComposableTargetAnnotationsTransformer when overriding a@Composablefunction with default parameter in another moduleKT-87326Compose compiler plugin: NoClassDefFoundError / IrLinkageError at runtime when calling@Composableinterface method with default parameter across modulesTools. Compiler plugins. Serialization
KT-86224Serialization plugin generates IR with out-of-scope type parametersTools. Daemon
KT-71048KotlinCompileDaemon compatibility not discriminated by JVM versionKT-75840Almost dead daemons are considered in the daemon electionsKT-85634-Xwarning-level warnings are escalated to errors when -Werror is enabled in BTA daemon modeTools. Gradle
New Features
KT-80509Gradle: implement metadata compilation through BTAKT-78216Gradle: implement Kotlin/Wasm compilation and linking through BTAKT-78214Gradle: implement Kotlin/JS compilation and linking through BTAKT-87481Introduce DelicateKotlinGradlePluginApi Opt-InKT-85709Write Kotlin Daemon warnings and Errors to Problems APIPerformance Improvements
KT-88084Each build leaves a strong reference to an instance of BuildMetricsServiceFixes
KT-83679Add ERROR deprecation for CleanableStore and CleanDataTaskKT-87992Compatibility with Gradle 9.7 releaseKT-87256KotlincOutputParser fails to parse compilation errors under Gradle when task path prefixes are enabled (Kotlin 2.4.20-Beta1)KT-87509Stop using Gradle Problems API severity fieldKT-87508Wire buildNeeded/buildDependent only for Gradle <9.5.0KT-87994Run Gradle integration tests against Gradle 9.7KT-87993Compile against Gradle API 9.7KT-85568Use compiler diagnostic identifiers in KGP Problems API reportingKT-85567Carry compiler diagnostic identifiers through Build Tools API messagesKT-85942Carry compiler diagnostic identifiers through MessageCollector infrastructureKT-84957Add configuration time build metricKT-87911Report an actionable diagnostic when .kar files reach compilation classpaths in Kotlin 2.4.20KT-86435ReplaceFile.ensureParentDirsCreated()with NIO PathcreateDirectories()KT-86827[KGP] Add KgpJson helper and bump kotlinx-serialization-json 1.4.0→1.4.1KT-86039Compile against Gradle 9.6.0 APIKT-86040Run tests against the Gradle 9.6.0 releaseKT-78294Applying kotlin-dsl in buildSrc with org.jetbrains.kotlin.ecosystem in settings.gradle.kts causes sync failureKT-87241CleanDataTask.exec() deprecation message unreachable - task fails with cryptic UninitializedPropertyAccessException insteadKT-87187Bump Apple deployment targets to match Xcode 27KT-86515Replace mavenLocal() with build-dir repo in KGP functional testsKT-86429Deprecate KGPcontentEquals()utility, move it to internal utility functionKT-76515IC misses dependency to recompile when named kt file with JvmField instructed property was replaced with an object with the same nameKT-87186Fix failing testSwiftExportCoroutinesKT-87160Fix failing Swift Export testExportingTransitiveDependencies testKT-85689DeleteprepareDepsfrom kotlin repoKT-86118CRI: Enablingkotlin.compiler.generateCompilerRefIndexdoes not invalidatecompileKotlinUP-TO-DATE stateKT-85901[Gradle] Refactor KGP functional test task configuration to use file-backed system propertiesKT-66381Build reports in JSON: incorrect path to a json build report is printed to build output if a relative path defined as a value for kotlin.build.report.json.directory propertyKT-55452Values of the compiler arguments set via KotlinCompile task configuration are duplicated by the KaptGenerateStubs taskKT-57653Explicit API mode is not enabled when free compiler arguments are specified in Gradle projectTools. Gradle. Compiler plugins
KT-84811PowerAssert: Gradle configuration option for default sourcesets to transformTools. Gradle. JS
New Features
KT-87484Update Browser JS Test DSL after DM for 2.4.20-Beta2KT-86260Integrate Playwright with JS Tests pipelineKT-86707Cover new Browser Js Test DSL with diagnostics and invariant checksKT-86715Add ability to configure Dev-server URL (or specification) to run browser tests fromKT-87483Mark parts of JS Test DSL with DelicateAPIKT-86630Introduce mocha browser runner for kotlin test as part of kotlin-web-helpersFixes
KT-87647Upgrade tooling NPM dependencies versions for 2.4.20KT-85854Improve AbstractSetupTask loggingKT-84724NPM dependency versions do not invalidate KotlinWebpack task cache key in kotlin multiplatform projectKT-84790Use package.json as 'source of truth' for KGP npm tooling dependenciesKT-87052JS tests: browser downloading hangs in WindowsKT-86958Unclear error for js test failure on timeoutKT-87674JsBrowserTestsIT test fails with an error on LinuxKT-86911Configured post-processing for playwright reports missing an input or output annotationKT-87501Throw an error if new JS test DSL is used with WasmKT-87600Playwright install on multiple subprojects cause Gradle build to failKT-87023Add ability to change / set path to custom browser executableKT-86922Correct browserDefaults timeoutKT-86106Fix task dependency in KGP lockfile generationKT-86271[WasmJs/Js] 2.4.0-Beta2 - Node version not compatible with popular JS dependenciesTools. Gradle. Multiplatform
KT-82398KMP Separate Compilation: missing fragment dependencies to commonized cinteropKT-88154Swift PM lock file is ignored on switching version fromexacttofromKT-88107clean task leave swiftpm checkout in root build directoryKT-88104dumpXcodebuildArgs task fails if the root build directory is removedKT-87790Kotlin 2.4.0 increases Gradle sync timesKT-83917compileCommonMainKotlinMetadata fails in CMP core repository with Kotlin 2.3.20-Beta1KT-81434[uklib] androidCompileClasspath resolves java compatibility variant instead of android for uklib libraryTools. Gradle. Native
New Features
KT-84852Wire linkage package integration check with Swift Export's embedAndSignKT-84420Figure out the handling of XCFramework when SwiftPM dependencies are involvedKT-85797Use faster findMacros in SwiftPM import cinteropsKT-86155Print what changed in the linkage packageKT-86667Switch off sandboxing in integrateEmbedAndSignKT-86047Suggest CocoaPods -> SwiftPM migration skill and documentation on cocoapods plugin applicationFixes
KT-86995Cocoapods plugin: pass all frameworks to the compilerKT-86015Swift export binary doesn't see main compilation cinterop outputKT-85468Don't fail IDE import if the SwiftPM import pipeline has failed somewhereKT-86288Eliminate redundant SwiftPM fetch tasks using shared fingerprinting strategyKT-87196Ld override falls apart in Xcode 27KT-87667SwiftPM import can deadlock when joiner tasks submit blocking workers before owner startsKT-84223Move local SwiftPM package IO validation and name inference from configuration time to execution timeKT-85961integrateLinkagePackage without parameters fails with an obscure errorKT-84238SPM Import: Ensure generated Package.swift preserves symlinks in local package pathsTools. Gradle. Wasm
New Features
KT-86633K/Wasm: Introduce wasmtime support as a runtime for wasm-wasi target in KGPKT-87258K/Wasm: Introduce a way to use multimodule compilation only for developmentKT-86919K/Wasm: Allow to configure wasm compilation modeFixes
KT-88566K/Wasm: Webpack configuration generated after user defined chunks from the webpack.config.d directoryKT-88285WasmJS tooling version overrides are ignoredKT-88115"Your lockfile needs to be updated": Outdated bundled yarn.lock breaks kotlinWasmToolingSetup with --frozen-lockfileKT-86878K/Wasm: Update wasmtime to 46.0.0KT-86673K/Wasm: update binaryen to 130KT-82419wasm failed to compile on windows arm64KT-85688K/Wasm: Remove setting of failOnNoDiscoveredTests in Wasm Gradle testsKT-86054K/Wasm: Not set sourceMapBaseDir if there is no sourceMap property in JS and WasmKT-85861K/Wasm: Upgrade NPM dependenciesKT-85806K/Wasm: Do not rewrite native_implementations.kt file path in source mapTools. Gradle. Xcode
KT-86858Eager SwiftPM check in XCFramework task crashes if Kotlin extension is not yet registeredTools. Incremental Compile
KT-85074IC: false build success when anonymous class fails to implement new abstract member from another module's interfaceKT-86781Deprecate FIR based incremental runnerKT-87217JS/Wasm IC: "Could not close incremental caches" with "Storage is already registered"KT-85241IC: star-import conflicts are not re-evaluated after adding new declarations, leading to missed ambiguity errorsKT-60584IC does not propagate RequiresOptIn level change effect transitivelyKT-84271Kotlin Incremental compilation failure "The following FqNames can't be derived from DirtyData.dirtyLookupSymbols"KT-85740Incremental compilation misses classpath removal when removed type is used only in a dependency's method signatureKT-85642IC: Classpath snapshot cache may serve stale entries when snapshot file is overwritten at the same pathTools. Kapt
KT-85195KAPT: IntroducedAt is not supported in KAPTKT-86550Kapt: properties with context parameters are translated incorrectlyKT-86003Remove MessageCollector usage from kaptKT-85453Make :kotlin-annotation-processing-cli:test cacheableTools. Maven
KT-83374CRI: it is not clear that CRI generation requires IC being enabled in MavenKT-85622[Maven] setting kotlin.compiler.jdkRelease without explicit jvmTarget causes compilation failure due to conflicting defaultKT-61667Maven: -Xjdk-release=20 leads to "'-Xjdk-release=20' option conflicts with '-jvm-target 1.8'. Please remove the '-jvm-target' option"KT-84163Maven smart defaults: and overrides not respectedTools. Performance benchmarks
KT-85233Refine benchmarks module and add new custom long-running tests to itTools. REPL
KT-86290Drop GenericReplTest & LegacyReplTestTools. Scripts
KT-87958K2 scripting: FirPropertyImpl transformation crash when using class from@file:Import-ed script in 2.4.0+KT-87041Scripting: classpath extraction fails to extract stdlib from kotlincKT-87331Scripting: compiling scripts with kotlinc doesn't update the compilation config after refinementKT-87042Scripting cache test fails on thekotlinrunnerKT-86391Drop SkipStandaloneScriptsInSourceRootsKT-85105Scripts: JVM backend internal error (IR lowering) when scratch file contains anonymous objectKT-85103Exception while generating code when explain destructuring declsTools. Wasm
KT-86407Get rid of '-Xwasm' usages in Kotlin projectKT-83434K/Wasm: add wasm-wasi stdlib into compiler distribution (dist/)v2.4.10Backend. Wasm
KT-87066K/Wasm: Not all files are presented in compiler output directory with multimodule-closed-world and incremental compilationCompiler
KT-86939JVM: IllegalStateException "No value for annotation parameter" when using const val in nested Java annotation array argumentKT-83766K2: Wrong sourcePsi is set forSymbolPsiLiteralin SLC for annotation arguments referencing a const valKT-86728Reified type inference: expected type not propagated into inline call inside lambda with elvis operatorCompose Compiler
b/522127447Compose Compiler 2.4: classes previously inferredstablenow reportedruntime/UncertainKlibs
KT-86501Native: IrTypeAliasSymbolImpl is already bound. Signature: kotlinx.datetime/Instant|null[0] on iosSimulatorArm64Tools. CLI
KT-86930Introducekotlinrin the Kotlin distributionTools. Gradle. BCV
KT-87223Gradle, BCV: open version range in kotlinAbiValidationCompatClasspath causes kotlin-build-tools-impl to resolve to 2.4.20-Beta1 instead of 2.4.0Tools. Gradle. JS
KT-87304jsBrowserTest fails with "exited with errors (exit code: 1)"KT-86057kotlinUpgradeYarnLock skips lock file regeneration when kotlinNpmInstall is up-to-date, causing kotlinStoreYarnLock to failTools. Gradle. Multiplatform
KT-87084False positive warning for JS and Wasm compilations when CRI is enabledTools. Scripts
KT-87076@file:CompilerOptions("-jvm-target", ...) ignored in .main.kts scripts in Kotlin 2.4.0, falling back to JVM target 1.8KT-86352K2 scripting: FirResolvedTypeRef exception when resolving extension functions from imported scriptsv2.4.0Analysis API
KT-83867OVERLOAD_RESOLUTION_AMBIGUITY false positive with assertEquals in IJ repoKT-83723[Analysis API] Enable experimental KDoc resolver by defaultKT-83388Analysis API: properly support KMP in KotlinPackageProviderKT-65683Analysis API: Dangling file session creation causes acomputeIfAbsentcontract violationAnalysis API. Code Compilation
KT-78946Evaluation of variable with local class in type parameter leads to InventNamesForLocalClasses exceptionAnalysis API. FIR
KT-68260K2 AA: InvalidFirElementTypeException “For CALLABLE_REFERENCE_EXPRESSION with text::lam1, unexpected element of type: no element found” with illegal callable reference callKT-70896AA: False positive deprecation warning with override of built-in method in JDK mapped classKT-84711K2 IDE sometimes loses FIR plugin-generated declarations after file changesKT-84625Analysis API: collectDesignationPath fails for nested classes inside plugin-generated top-level classesKT-84596Improve K2 Jooq completion performanceKT-84525KaValueParameterSymbol#getHasSynthesizedName returns false for FirDeclarationOrigin.SubstitutionOverride.DeclarationSiteKT-83546Kotlin analysis reach ClsCustomNavigationPolicyKT-84259Move CommonDefaultImportsProvider to the frontend independent moduleKT-82945Analysis API: KotlinIllegalArgumentExceptionWithAttachments: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImplKT-71135AA: exception from sealed inheritors checker whenanalyzeCopyAnalysis API. Infrastructure
Fixes
KT-83905Analysis API: Improve UX with test dataKT-84913Extract compiler classes used by the PSI & Analysis API to a separate moduleKT-64986Analysis API: Implement Analysis API tests for different KMP PlatformsKT-84776The test data manager misses the redundancy check in the update modeKT-84962The test data manager misses -ea flagKT-84388Preserve the EOF status in the test data manager to avoid extra changesKT-84362Analysis API tests produce many warnings due to "not yet loaded registry"KT-84279Test Data Manager fails on a clean buildKT-83913Exclude compiler-based Analysis API tests from Git trackingKT-80379Extract per-module test generators for AA testsKT-84120Move CLI modules out of kotlin-compiler-fe10-for-ideKT-83200Track external dependencies of the Analysis API modulesAnalysis API. Light Classes
KT-82434Light classes should prefer enum entries to propertiesKT-84200SLC: return type is not boxed for delegated methods with generic original methodKT-72451"CCE: class PsiPrimitiveType cannot be cast to class PsiClassType" with same-named enum class and typealiasAnalysis API. PSI
KT-84715removeModifier doesn't delete whitespaces around the removed modifierKT-84564KtEnumEntry.delete deletes semicolonKT-84781Use computed properties in KotlinElementTypeProviderImplKT-83846Set up guidelines for PSIKT-84135Deprecate KtSelfTypeAnalysis API. Providers and Caches
KT-82731Analysis API: Limit granular tree change processing to a few filesKT-79234Analysis API: Usage ofasMap()on Caffeine caches bypasses stats countersKT-74090Analysis API: Support dumb mode (restricted analysis)Analysis API. Standalone
KT-83801Nested typealiases are not correctly indexed in standalone modeAnalysis API. Stubs and Decompilation
KT-85371StackOverflowError from LLKotlinStubBasedLibrarySymbolProvider and StubBasedClassDeserializationKT-83935Support KDoc loading in decompiled stubsAnalysis API. Surface
New Features
KT-85239Streaming version of collectDiagnostics()KT-82519Automatically recognize the appropriate analysis mode for in-memory file copies based on their contentKT-73534SAM method APIKT-82993Support explicit backing fields in the Analysis APIFixes
KT-79186KtCompletionExtensionCandidateChecker does not work for extensions when using callable references of a typeKT-83759Analysis API: Mark platform interface APIs with@KaPlatformInterfaceKT-83921Extend KaKDocProvider to read Kdoc from KLIB metadataKT-77426KaFirCompilerFacility uses an arbitrary JVM counterpart for common sourcesKT-84737KaCallableSymbol#directlyOverriddenSymbols doesn't work for java overrides of kotlin propertiesKT-84621Migrate symbol tests to ManagedTest properlyKT-80575KaFirJavaInteroperabilityComponent#getJavaGetterName should not throw exception on incomplete codeKT-84397KtDefaultAnnotationArgumentReference should return only results with value nameKT-84804buildSubstitutor does not work correctly with Java type parametersKT-84389Cover references with ABI and documentation checksKT-57042K2, Analysis API: KaJavaInteroperabilityComponent#callableSymbol returns null for a Java getter implementing Kotlin propertyKT-80856Analysis API:analysisContextModuleincorrectly determines the module of an original file when used for dangling file context assignmentKT-84363AA, isUsedAsExpression: Unhandled Non-KtExpression parent of KtExpression: class org.jetbrains.kotlin.psi.KtContractEffectKT-70476Analysis API: "KtDefaultAnnotationArgumentReference.resolveToSymbols" does not work in FIR implementationKT-68499Split KtDefaultAnnotationArgumentReference on K1 and K2 implementationKT-70521Analysis API: Impossible to distinguish between 'iterator' operator calls dispatched with imports from objectsKT-77669Context arguments are missed on implicit invoke callsKT-77670resolveToCall: extensionReceiver is incorrectly chosed due to a conflict with context parameters for an implicitinvokecallKT-68633K2 AA: IAE "Expected class KaClassSymbol instead of class KaFirEnumEntrySymbol" with enum entry initializerKT-83777Analysis API: The resolution scope of a context module accepts elements from associated dangling filesKT-82571No expected type for overridden property without explicit typeKT-83223Support "Explicit context arguments" in the Analysis APIKT-65186K2: Analysis API: KtExpressionTypeProvider.getExpectedType works incorrectly for the right hand side of assignment expressionsKT-76011KaFirNamedClassSymbol#companionObjectdoesn't provide generated objects generated by compiled pluginsKT-73290Analysis API: Improve the architecture of content scopes and resolution scopesBackend. J2KLIB
KT-86368[JKLIB] MetadataJVMModuleDeserializer tries to deserialize all symbolsKT-86367[JKLIB] kotlin.Cloneable built-in class not foundKT-84877[J2KLIB] Remove withKotlinBuiltinsHack present in JKlibIrLinker.ktKT-85846Tests failing with fake override property missing accessors or backing fieldKT-85717IllegalStateException due to already bound symbolKT-86204[JKlib] Propagate private members from dependecies in the IR treeBackend. Native. Debug
KT-83804Native: debug information generator converts relative paths to absolute onesBackend. Wasm
KT-83162K/Wasm: renaming temporary and synthetic variables in the Chrome debuggerKT-85008Develop and publish a demo app using an early version of the component model supportKT-76205K/Wasm: stabilize and turn on incremental compilation by defaultKT-83728[Wasm] Invalid Ir type while suspend call with blocked if null comprehansionKT-81637K/JS/Wasm interop: Inconsistent behavior ofis/asoperations forJsReference<C>andCKT-65030K/Wasm: memory allocator for Component Model ABIKT-83607WasmJS: Production build eliminates 'else if' branch when 'else' is not wrapped with curly bracesKT-82803Kotlin/WASM: Failed to compile the doResume function with if inside catch blockKT-83800[Wasm] Closed world per-module compilationCompiler
New Features
KT-84487"-Xcollection-literals" compiler flagKT-84072Collection literals: treat visibility ofofduring resolve correctlyKT-83165Collection literals: treat Deprecated(HIDDEN) operatorsofreasonablyKT-80500Collection literals: AnalyzeConeCollectionLiteralAtomin cases their expected type is not fully knownKT-80491Implement fallback mechanism for collection literalsKT-80490Implement overload resolution mechanism for collection literalsKT-84298K2: Generate IR for Companion Blocks & ExtensionsKT-83765Make -Xsuppress-version-warnings have a diagnostic IDKT-84484Companion Extensions Analysis & ResolutionKT-84199Implement DontMakeExplicitNullableJavaTypeArgumentsFlexible featureKT-84319Add JVM target bytecode version 26KT-84297Serialize & Deserialize Companion Block Declarations & Extensions to/from MetadataKT-84288Companion Blocks Analysis & ResolutionKT-84286Parse Companion Blocks & ExtensionsKT-84292Enforce Companion Blocks & Extensions Language Feature during ResolutionKT-84291Companion Blocks & Extensions CheckersKT-84290Callable References to Companion Block Declarations & ExtensionsKT-84287Build Raw FIR for Companion Blocks & ExtensionsKT-73256Implementallmeta-target for annotationsKT-66344K1 & K2: False positive WRONG_NUMBER_OF_TYPE_ARGUMENTS in callable reference to inner class memberKT-76766Warning is missing for wrong subclass checkingKT-74049Introduce special override rule to allow overriding T! with T & AnyPerformance Improvements
KT-84941Skip linking klibs for generating ObjC headersKT-80367Reduce memory consumption of DevirtualizationAnalysisKT-84412iOS release build time dramatically increases with 2.3.20-Beta2 compared to 2.3.10KT-82559linkDebugTest*X64 tasks are slower for Kotlin 2.3 than for 2.2KT-84095Improve Unit tail-call optimization to support inline generic functions similar tosuspendCoroutineFixes
KT-77726Move FirUnusedExpressionChecker to the default checkers listKT-84841Collection literals: Drop special treatment ofwhenwith expected typeKT-84732Collection literals: "ExpectedFirCollectionLiteralImplto be resolved" in RHS of equality operatorKT-84675Collection literals: 'Not singleClassifierType superType: TypeVariable(S)' in PCLAKT-84559@OptInon collection literal and context-sensitive does not workKT-84547Collection literals: "Expected expression 'FirCollectionLiteralImpl' to be resolved" in elvis expressionKT-80489Collection literals: experimental version (Frontend)KT-84768[K/N] switch thread state inorg_jetbrains_skia_Canvas__1nDrawPictureto workaround the deadlockKT-52673Don't report deprecation warning/error on last segments of importsKT-83988Remove extraneous POP+GETSTATIC Unit for calls of Unit-returning suspend functionsKT-77584Support scripts built from LT in scripting APIKT-80113Consider improving diagnostic messages related to==/===/is/asKT-85392Native: concurrency issues in per-file cachesKT-83938Missing Tail call optimization in reference classes returning UnitKT-78432No-arg constructor should be generated for regular classes with a value class parameter in case of JvmExposeBoxedKT-86130False positive UNINITIALIZED_ENUM_COMPANION on LV 2.3 and lowerKT-84860False positive UNINITIALIZED_ENUM_COMPANION in enum access with explicit receiver in enum initializer when enum class has a companionKT-86210Update -Xannotation-default-target CLI parameter docKT-80590Drop language version 1.9 for JVMKT-85948Contracts in 2.4 stdlib is not compatible with 2.3 compilerKT-82123KDoc: references that goes after markdown blocks don't have linksKT-85957Contract on function is getting discarded if any of effect declarations is unknownKT-84931Incorrect type nullability in SAM super type in anonymous class-based SAM conversionKT-83766K2: Wrong sourcePsi is set forSymbolPsiLiteralin SLC for annotation arguments referencing a const valKT-85062Deprecate language version 2.1KT-79729Kotlin should warn about orphaned block expressions, e.g. // if () \n { .... }KT-83884The unused return value checker doesn't report a coercion from reference to UnitKT-85825Context parameter lambda loses context type when wrapped in nestedrunblocksKT-37179false-positive shadowing warning on local and member extension functions in presence of member extension property with invoke operatorKT-84366Invalid name for capturedthisin bytecodeKT-84960Property contract leaks unsubstituted type parameter in smart castKT-84281Standalone typealias-to-object qualifier allows type arguments and has typeUnitin this caseKT-84280StandaloneUnitqualifier allows type arguments:Unit<Any>KT-84380Type alias to non-generic class can have (arbitrary number of) type arguments in LHS of::classKT-84190Implement basic functionality for returnsResultOf contractKT-83920False positive "modifier 'value' is not applicable to 'local variable'" with soft keyword in positional destructuring (square bracket) declarationKT-84991ImproveArgument type mismatchdiagnosticsKT-82216Sanitize '.kotlin_module' filenameKT-85354checkPsiTypeConsistency: add psi text attachmentsKT-85479Improve diagnostic messages for upper bound violationsKT-84585Upper bound violated warning for expansion of type alias in LHSKT-84924Native: stdlib-cache.lock used by mulitple processesKT-85244False positive DUPLICATE_BRANCH_CONDITION_IN_WHEN with guard conditionKT-85487Investigate why WrapContinuationForTailCallFunctions does not work in Android TestKT-59633K2: Implement running AndroidRunner tests with FIRKT-76237Store File-level annotations in KLIB metadata separatelyKT-84198Support multiple embedded .let-like calls with returnsResultOf contractKT-84196Handle multiple entry/exit points for returnsResultOf functionsKT-84195Handle function references in returnsResultOfKT-85162Introduce diagnostics to refine numeric types castingKT-80060False positive REDUNDANT_CALL_OF_CONVERSION_METHOD in case of overloadsKT-85289False-positive smartcast from == with type parameter based variableKT-83890return-value-checker: false positive "Unused return value of 'context'" on kotlin.context() functionsKT-84106False negative "NON_EXHAUSTIVE_WHEN": "NoWhenBranchMatchedException" at runtime with sealed and platform typeKT-84717Provide information for qualified expressions that might be replaced with context-sensitive simple names in IDE modeKT-38983Bridges are not generated in interfaces, which leads to counterintuitive behavior of java.lang.reflect.ProxyKT-85005Considerall:target in the checker of repeatable annotationsKT-85210Enabling -XXLanguage:+IntrinsicConstEvaluation breaks highlighting on some broken codeKT-85217Rework implementation supporting simple-to-suspend function conversionKT-85036Introduce a proper handling of optional expectation annotations in platform checkers during metadata compilationKT-85086False-negative JVM_EXPOSE_BOXED_CANNOT_BE_THE_SAMEKT-84082[OPT_IN_USAGE_ERROR] duplicates for destructuring declarationKT-85007Properly implement special rules forkotlin.Resultin@JvmExposeBoxedsupportKT-74383Support new callable reference nodes in JVM backendKT-84828Cleanup JVM backend from the old callable references-related codeKT-85006Refine error messages forINAPPLICABLE_ALL_TARGETdiagnosticKT-84296Support Companion Blocks in CFGKT-85058Remove final field modification in DescriptorRendererOptionsImpl to prevent warnings on JDK 26+KT-72710Incorrect behaviour of tail call suspend functions optimizationKT-84727[K/N] Segfault when returning null as generic Int type from dynamic frameworkKT-83460Deprecation from@all:Deprecated is not propagated to property accessors/backing fieldsKT-84859Skip deprecation phase for generic arguments in qualifier receiver of static call for companion block members and extensionsKT-85050[Swift Export] usage of inline classes with ref types crashes at runtimeKT-84983Type parameter annotations are lost for local functionsKT-78800Investigate FirMissingDependencySupertypeInQualifiedAccessExpressionsCheckerKT-73945K2 IDE: Duplicated inspections for redundant 'open' in interface memberKT-84294Ensure Context Sensitive Resolution works with Companion Blocks & ExtensionsKT-83904[Inliner] Inline function overrides an abstract method with a default value in an inheritance chainKT-81675Improve message for CONTEXTUAL_OVERLOAD_SHADOWEDKT-84994Rework optimization for companion extension resolutionKT-81598incorrect type mismatch error messages for generic calls with explicit type argumentsKT-84185Type arguments are wrongly allowed in receivers of static callsKT-83441False positive: REDUNDANT_CALL_OF_CONVERSION_METHODKT-83587K2: Missing null-check when using == on Short! and Byte! platform typesKT-84405ClassCastException with conflicting projection on the LHS of a callable referenceKT-84866Reserve CoroutineContext as context parameter for future useKT-65239K2: Render FIR declaration instead of IR-based descriptors in IR signature clash diagnosticsKT-84743Type parameter declared as 'in' can be used in 'out' position in DNN & flexible typesKT-84720"Unused return value" is not reported inside used if/when multi-statement blocksKT-84310No Warning Emitted For Deprecated Java Enum Value UsageKT-81871Drop context receiver testsKT-84714KJS: Forbid exporting properties with context parametersKT-80701Native:-Xbinary=cCallModeis not integrated with compiler cachesKT-84000Native: test pre-codegen inliner on CIKT-57557Implement getAndSet for AtomicNativePtr via getAndSetField intrinsicKT-84352createUninitializedInstancegenerates invalid LLVM for value classesKT-84234RenameCONST_VAL_WITHOUT_INITIALIZERdiagnostic for properties with EBFKT-84411Confusing message for the class reference of the inner class with the type parameterKT-84594EBF is smartcasted in inline function with@PiblishedApiKT-83989Update coroutines-codegen.md after changes of Unit tailcall optimizationKT-84452EBF is smartcasted in the default argument with noinline modifierKT-80925Replace "useless" in diagnostic messagesKT-83646Native: don't usesun.misc.UnsafeinByteArrayStreamwhen running on JVM 24+KT-82122Prohibit arbitrary placement of type parameters in callable reference LHSKT-82574Fixation: consider preferring EQUALS constraints to LOWER onesKT-83564Consider droppingHAS_PROPER_NON_NOTHING_NON_ILT_LOWER_CONSTRAINTKT-84213Flaky incremental compilation behaviour with EBFKT-84133AdoptinitInstanceto handle value classesKT-24840Square bracket escaping in KDocKT-84167Invalid type references with type arguments in package parts compile without diagnosticsKT-84209False negative ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT on context parameters of function typesKT-83354Wrong position for lambda context type errorKT-84206Remove forcesPreReleaseBinaries = true from ExplicitBackingFieldsKT-83524An anonymous function with named parameters throws FileAnalysisExceptionKT-84155K2: NO_CONTEXT_ARGUMENT caused by stale value inNewConstraintSystemImpl.hasContradictionInForkPointsCacheKT-83829False-negative INVALID_DEFAULT_FUNCTIONAL_PARAMETER_FOR_INLINEKT-83842KIAEWA: Exception in expression checkers for@OptIn(markerClass=[…])KT-84045Evaluate default arguments of annotation's parameters using FIR evaluatorKT-83987Refactor/fix CoroutineCodegen.isReadOfInlineLambda()KT-83772Create a language feature for wrapContinuationForTailCallFunctionsKT-84061K2:IllegalStateException: FirResolvedNamedReference expectedon plusAssign for array element with unresolved initializer inside buildListKT-83985DroparrayOfcheck fromEscapeAnalysisCheckerafter bootstrap updateKT-78885Current frame disappears from stack trace when debugging inline-heavy suspend codeKT-78727Split KonanConfig into NativeFrontendConfig and NativeBackendConfigKT-83755Support rendering of evaluated and original arguments inFirAnnotationRenderer#renderAnnotationKT-17763Inner class constructor has incorrect generic signature in the bytecodeKT-83625Initialize annotations on Java record componentsKT-83795Compiler crash on suspend lambda as default parameter of inline functionKT-72880Calls with incorrect VarHandle method signatures are generated with -Xjdk-release being usedKT-67809Native: remove support for non-opaque LLVM pointer typesKT-82148Suspend function returns the wrong value and not UnitKT-55559JVM: ClassCastException with Unit returning suspend function and tail-call Non-Unit returning suspend function and callable referenceKT-70995Kotlin/Native: Treat all@HasFinalizertypes as escaping in Escape AnalysisKT-83903'when' with 'val' does not take previous nullability check into accountKT-83952StackEntries for tail-call suspend functions have internal names for classes instead of FQ namesKT-83377Investigate usage ofdeclarationSymbolsin resolve of local user typeKT-83770Smartcast doesn't work for an explicit backing field with multiple intersectionsKT-83650Native: don't usesun.misc.UnsafeinCastsOptimizationwhen running on JVM 24+KT-83754KotlinIllegalArgumentExceptionWithAttachments for explicit backing field with annotated typeKT-83756Error while resolving FirNamedFunctionImpl with explicit backing field and implicit typeKT-83563Consider dropping fixation readinessREIFIEDKT-83713K2: No error withexternalprimary constructor parameterKT-83104K2: No error with external enum entryKT-83696Consider dropping HAS_NO_RELATION_TO_ANY_OUTPUT_TYPE readinessKT-83308K/N: "IllegalArgumentException: An interface expected but was Any"KT-81590Switch latest stable version in Kotlin project to 2.4KT-66701K2: Java interface method override via Kotlin class rejectedKT-56563Inference within if stops working when changing expected type from Any to a different typeKT-261Can't specify function return type in a subclassCompose compiler
New features
c1bbb47Started inferring the stability of all interfaces to beStability.Unknown, expect for those explicitly marked as knownstable.
Fixes
b/511102714Made the default stability of non-final classesUnknowninstead of
Stableb/509945632Do not generate groups in inline lambdas without@Composablecalls.b/504284805Fix indentation for generated proguard mappings.b/422193018Fix applier inference for nested composables of different types.b/497751457Prevent a$stableproperty from being added to any object.b/427530633Do not infer a getter call as static across when it is defined in another file.b/427530633Started usingStability.Runtimemore broadly. Now, when anelement depends on the stability of an
internalorpublicclassdefined in another file, the element will no longer infer the
stability of that class and will depend on the runtime stability of
that class instead.
IR. Actualizer
KT-84293Expect Actual Matching for Companion Block Declarations & ExtensionsIR. Inlining
KT-73708Use some marker in KLIBs produced with IR inlinerKT-85605"Local delegated property has not delegate" exception when calling inline function containing delegated property in a lambda from within an inline lambdaKT-84112Intra-module inliner: No container found for type parameter 'T'KT-84416High memory usage for IrFileEntry after enabling inlinerKT-75396[IR] Pass LoweringContext to inline and serialization checkersIR. Interpreter
KT-86083Create a new CLI flag to enableIntrinsicConstEvaluationfeatureKT-80804Enable constant evaluation for more standard libraryKT-83514Get rid ofEvaluatedConstTrackerKT-84561K2: Convert evaluated constant by default in FIR2IRIR. Tree
KT-79663KLIB-based compilers: Promote partial linkage to "always on"KT-76934Drop old IR parameter APIKT-72950Partial Linkage: Change the semantics of-Xpartial-linkage-loglevelKT-74763Build: refactor ':compiler:backend.common' and ':compiler:ir.backend.common' modulesKT-76634PL: Don't report warnings in cases that don't lead to runtime errorsKT-79801KLIBs: Implement checks for symbols loaded by the compiler on 1st and 2nd phasesKT-72812IR serializer: Don't serialize any cinterop fake overrides to KlibsJVM. Reflection
Fixes
KT-86017KClass.constructors returns all java.lang.String constructors for mapped type kotlin.StringKT-85550Reflection: KParameter.type.classifier returns boxed KClass for non-nullable primitive typesKT-82659Reflection: IAE on a call to a Java inner class constructorKT-85999Reflection: ByteArray KType incorrectly has type arguments in Kotlin 2.4.0KT-85285Reflection: InvocationTargetException (UInt cannot be cast to Integer) when reading UInt annotation property via getterKT-85091Reflection: "KotlinReflectionInternalError: Unsupported parameter owner: null" on attempt to get annotations of annotation constructor parameterKT-85322Reflection: KotlinReflectionInternalError when loading ProGuard-obfuscated code compiled before 2.3.20KT-84679Reflection: confusing "Kotlin reflection is not yet supported for synthetic Java properties" for reference to Java enum's entries propertyKT-85025KTypeParameterinstances not equal to each other for the same type parameter in member specializationKFunctionKT-84796Reflection: mutable flexibility is lost for K1-based types in KClass.allSupertypesKT-84494Reflection: Java Collections have differences in kotlin supertypes from old K1 reflectionKT-84382Reflection: raw list in Java type is transformed to List instead of MutableListKT-84492Reflection: supertypes of raw list in Java type are not rawKT-84076Reflection: list in Java type is transformed to flexible instead of mutable listKT-14990'callBy' for inner class constructor fails at run-timeKT-82881Reflection: update KCallable.callBy kdoc to mention vararg parametersKT-84075Reflection: wildcard in Java type is transformed toout Any!instead of star projectionJavaScript
New Features
KT-51292Proposed behavior of@JsExporton interfaces and classes with companion objectsKT-21626Support ES2015 syntax injsfunctionKT-83451K/JS: Support ES6 object destructuring in js() callsKT-83452K/JS: Support ES6 array destructuring in js() callsKT-82128[K/JS] Allow named companion objects in exported interfacesPerformance Improvements
KT-77646KJS: optimize Byte/Char/Short/Int/Float/DoubleArray.copyOf(newSize)Fixes
KT-84332KJS: Reconsider disallowing nested classes in exported interfacesKT-72198KJS: ES2015 interop with ValueClassKT-84090Save variance in the generated TypeScriptKT-56618KJS/IR: Support external interfaces from common code (via annotation?)KT-85038Kotlin/JS:@JsExporton sealed external interface with companion object causes NPEKT-81787KJS: Value class type lost when using JsExport on interfaceKT-85411Fix conversionCombinations.kt tests for the JS targetKT-83701Escaped identifier with a quote cause an invalid d.ts fileKT-68281K/JS: Order of classes in initMetadataForClass are not deterministicKT-15101js: Same callable references are not equalKT-84810[K/JS] Callable references operator produces duplicatesKT-85323JsClass optimization doesn't work well for primitivesKT-60651KJS / ES6: init block and constructor are not calledKT-84601K/JS:KClass<>reference doesn't work in JS counterside as anewtarget in ES6 modeKT-85099KotlinJS: JsPlainObject from the js-plain-objects plugin does not respect overridesKT-84615KJS: Forbid@JsStaticon extension functions/propertiesKT-84002Bump version from 2.3 to 2.4 for JsNoRuntime-related annotationsKT-84474Kotlin/JS: Long::class becomes null when passing the value to a generic function with -Xes-long-as-bigintKT-84647K/JS: Class expressions are not supported in js() callsKT-84458KJS: Fully support@JsStaticin Analysis API-based TypeScript ExportKT-84454KJS: Generate protected overrides for abstract class inheritors in Analysis API-based TypeScript ExportKT-84490KJS: Fix mutability of exported top-level variables Analysis API-based TS export with ES modulesKT-84459KJS: Support default exportability in Analysis API-based TypeScript ExportKT-84456KJS: Support deprecation comments in Analysis API-based TypeScript exportKT-82264Implement exporting classes in Analysis API-based TypeScript ExportKT-84233K/JS: exported collection views doesn't provide Iterator methodsKT-82127Remove generator-based coroutines intrinsics after bootstrapKT-84003Remove@Suppressfrom JsReference after bootstrapKT-44753KJS / IR:@JsExportnon-public fun exports nothingKT-83992Drop K1 JS entry point and IC codeKT-83722K/JS: NON_EXPORTABLE_TYPE in the exported file with name-based destructuring declarationsKT-69353KJS / d.ts: Kotlin does not export base collection classes along with their mutable collection counterpartsKlibs
Performance Improvements
KT-84415Ineffective hashMap usage in IrSymbolDeserializerKT-80903[Klib] Optimize size of serialized IR element coordinatesKT-84451[Klib] Use varint encoding for element sizes in IR tablesKT-84400[Klib] Optimize size of serialized IrExpressionKT-79675K/N: Uncached ZipFIleSystemAccessorFixes
KT-78188[JS] Klib backward and forward compatibility testingKT-82471[K/N] Klib forward compatibility testing with codegen testsKT-83929Add tests for IR signatures of static properties and functionsKT-81411MergeKonanLibrarytoKotlinLibraryto simplify adoption ofKlibLoaderin the Kotlin/Native compilerKT-82469[K/N] Klib backward compatibility testing with codegen testsKT-84511[Native][Tests] Improve descriptor-related logic in NativeCliBasedFacades.ktKT-85017[PL] Add test for addedinternal abstract funKT-84488Export in previous version: Prohibit using on 2nd stageKT-85149Klib Dump parser: fix parsing of qualified names adjacent to vararg symbolKT-85129Klib Dump parser: fix enum names parsingKT-84684RemoveUserVisibleIrModulesSupportfrom IR linkerKT-84820[K/N] Loadlibcallbacksandlibllvmstubsfrom configured pathKT-84819K/N: Segfault on xctest when using internal abstract on a parent classKT-83807Restore non-nullability of symbols not available in 2.3.0 stdlibKT-83012Export in previous version (Native): add the checker for incompatible Kotlin stdlib/compiler pairsKT-84341Fix detection of box function in forward compatibility testsKT-83748Bump versions in JS Klib compatibility testingKT-83724Fix & unmute stdlib & kotlin-test compatibility testsKT-83151Restore non-nullability of symbols available since 2.3Language Design
KT-14663Support having a "public" and a "private" type for the same propertyKT-80852Version overloading: generate overloads corresponding to different versions of a function whose parameters are annotated with@IntroducedAt()KT-73821Decide the future of the ForbidUsingSupertypesWithInaccessibleContentInTypeArguments language featureKT-85120@IntroducedAton expect parameter cannot be properly actualizedLibraries
New Features
KT-84921Add 'returnsResultOf' contract to appropriate declarations in the stdlibKT-73111No UInt.toBigInteger() and ULong.toBigInteger() conversion functionKT-78499Add isSorted() extension to standard libraryPerformance Improvements
KT-70750Kotlin's Regex implementation on Kotlin Native is painfully slowKT-67731Regular expressions works slowly on iOSKT-80772K/N: Regex: improve look behind matching performance for "fixed-length" patternsFixes
KT-83525Introduce support window for Kotlin Stdlib versionsKT-86027Hide returnsResultOf under a separate flag and remove its usages from kotlin stdlibKT-84818[Regex] Native and Wasm: Decomposed Unicode character are incorrectly process with CANON_EQ flagKT-83131Testing: assertNull has no contractKT-85122Deprecate kotlin.io.readLine with WARNINGKT-84970Deprecate AbstractCoroutineContextKey and associated APIKT-81395Stabilize kotlin.uuid.Uuid APIKT-85127Remove kotlin.test.assert*NoInline hidden functionsKT-84264Add appropiate@SinceKotlinto new contractsKT-84697Update the list of JDKs the stdlib is tested withKT-83956Clarify joinToString behavior when the receiver is emptyKT-61180kotlin.ArrayIndexOutOfBoundsException on Native with Regex, works on Android/JVM thoughKT-84871compareValues, nullsFirst, nullsLast return 0 for -0.0 and 0.0 on JSKT-84691Add samples for toBigInteger extension functionsKT-84372PathExtensionsTest.copyToRestrictedReadSource fails with JDK22+KT-84369StringJVMTest.formatter fails with JDK13+KT-84613String.toDouble() produces incorrect results on Wasm for large exponent valuesKT-76905Add samples for kotlin.math functionsKT-84355Reduce the number of iterations for the removeHashAtStressTestKT-83962List.listIterator(Int) KDoc's exception condition is incorrectKT-83958Improve enumValueOf documentationKT-83953Add samples for kotlin.time extension functionsKT-83951Rewrite stdlib samples to use assertPrints instead of assertEqualsNative
New Features
KT-78686LLVM update Q1 2026KT-84826Bump the minimum deployment version of Apple targetsFixes
KT-84686Removing x64 in gradle file breaks builds on certain platformsKT-71278Enable Concurrent Mark and Sweep (CMS) GC by defaultKT-81748Create a phased CLI for Native klib compilationKT-84733LLVM Update: rebase LLVM once the upstream stabilizesKT-83914Native: when loading JNI libraries, java.library.path can contain system directories with libraries with same namesKT-83133Native: don't usesun.misc.Unsafein the compiler and cinterop when running on JDK 25+KT-83648Native: don't usesun.misc.UnsafeinNativeMemoryAllocatorwhen running on JDK 25+KT-83647Native: don't usesun.misc.UnsafeinnativeMemUtilswhen running on JDK 25+KT-82674Native: dyld[...]: Symbol not found: _mach_vm_reclaim_update_kernel_accounting_trap on macOSKT-82879Native: DLLs in the Windows distribution are not reproducibleKT-83283Test Kotlin/Native performance tests compilation in Gradle 9.0KT-82872Native: make Kotlin/Native distribution compiler cache reproducible for LinuxKT-82871Native: cstubs.bc for android_* platform libraries contain absolute paths in string literalsKT-34467Cinterop: Clang crashes when -fmodule-map-file is specified (SIGSEGV)Native. Build Infrastructure
KT-85803K/N: build not reproducible - platformLibs cachesKT-84503Duplicate META-INF/serialization.shadow.kotlin_module entry in kotlin-native-compiler-embeddable jarKT-85191K/N: Dependency cycle in libclangInteropKT-84937Kotlin/Native: non-reproducible .bc for mingw_x64KT-80072Make Kotlin/Native distribution reproducibleKT-81771konanc failing to load native librariesNative. C Export
KT-61748KMM- warnings when compiling native targets (Kotlin 1.9.0)Native. C and ObjC Import
KT-85705Swift-generated headers with external_source_symbol produce duplicate enum declarationsKT-82379Introduce lenient modular cinterop modeKT-81695Repeated typedefs across multiple clang modules break cinterop with -fmodulesKT-82766K/N: external_source_symbol clang attribute causes cinterops with -fmodules to downgrade to forward declarationKT-84023Modular import fails with an obscure error when the failing module is not the last oneKT-81433Generate C-interop KLIBs in previous ABI version in Kotlin 2.4.0KT-82402Inter-cinterop type reuse with -fmodules uses forward declaration when an actual declaration is availableKT-82377Fix ObjC forward declaration handling in modular cinteropsKT-81752Native: investigate and remove filtering of-fmodule-map-filein cinteropKT-83814Native: includedHeaders= in platform libs manifests is not reproducible when modules= is usedNative. ObjC Export
KT-86068Native: add support for ObjCEnum.EntryNameKT-85171Red Swift code in Native UI Multiplatform App project from Template GalleryNative. Runtime
KT-84331Kotlin/Native: RunLoopFinalizerProcessor needs initialized runtime before it has any jobsNative. Runtime. Memory
KT-83670K/N: gc concurrent mark phase assert Failed to terminate mark in STW in a single iterationKT-80770Kotlin/Native: revise ObjC refcount methods called in runnable stateKT-84640Native: comment forkotlin.native.runtime.SweepStatisticsmisses the word "number"Native. Swift Export
New Features
KT-84361[Swift Export] Preserve TypeInfo on StateFlowKT-85130[Swift Export] Preserve TypeInfo on SharedFlowKT-82705Support convenient export of Flow types in Swift exportKT-66821Swift Export: value classKT-82598Swift Export: Custom name translationKT-69431Swift export: inline functionsKT-84263[Swift Export] Context Parameters on Functional TypesFixes
KT-80305Support coroutines in Swift ExportKT-85380[Swift Export] Attempt to bridge unbridgeable type: SirUnsupportedTypeKT-84317Swift Export: "protocol members can only be marked unavailable in an '@objc' protocol" in generated code for kotlinx-coroutinesKT-85704[Swift Export] cannot infer generic type of function returning a generic typeKT-85711[Swift Export] suspend function returning non-null generic fails to compileKT-85715[Swift Export] generic interface in typealias fails to compileKT-85714[Swift Export] unsupported input type param in functional receiverKT-83743Swift export: type arguments expected for generic typealiasKT-85458[Swift Export] value of a closure returning a closure generates invalid swift codeKT-85521[Swift Export] conflicting overloads for generated Kotlin bridgesKT-85293SwiftExportCoroutinesWithResultValidationTest.testCoroutines fails after cross-pushKT-84515[Swift Export] suspend functional parameter generates invalid Swift codeKT-82282Swift Export: suspend function returning Array leads to incompilable codeKT-81540Swift Export: using interface in Set generates incompilable codeKT-66873Swift Export: suspendable contravariant functional typeKT-85272[Swift Export] conflicting imports for kotlinx-coroutinesKT-85163[Swift Export] Flow of Unit values crashesKT-85159[Swift Export] Flow is not properly being cancelledKT-84226[Swift Export] Flow in contrvariant position is not allowedKT-84485[Swift Export] Flow with nullable elementsKT-83730Generated Swift switch on bridged Kotlin enum crashes with fatalErrorKT-85016[Swift Export] it's not OK to expose Flow as AsyncSequenceKT-84979Swift Export Nullability: UnitKT-83821Swift Export: suspend function returning Nothing leads to incompilable codeKT-81593Swift Export: suspend function returning Unit leads to incompilable codeKT-84359[Swift Export] nested functional type with Unit parameterKT-84358[Swift Export] functional type with Unit parameterKT-84356[Swift Export] functional type with single Unit parameterKT-83567Swift Export: "IllegalStateException: Internal compiler error: doesn't correspond to any C type: kotlin.Unit": invalid closure is generated for suspend function which returns UnitKT-83397[Swift Export] Functional return type with Unit parameter is emitted as invalid void parameter list ('void' must be the first and only parameter)KT-84243[Swift Export] Returning value of suspending functional type from suspending function yields invalid codeKT-82568Swift Export: Context ParametersKT-83398[Swift export] converting non-escaping parameter to generic parameter may allow it to escapeKT-83389Swift Export: "ClassCastException" caused by suspend fun throwing ErrorKT-83116Swift export generates bridges incompatible with language version 2.4KT-83749[Swift Export] varargs and List uses the same mangling on bridgesKT-83712Swift Export ignores internal setter and generates invalid bridge codeTools. BCV
KT-83476Use Maven publications as dump input [ABI Validation]KT-78341Outer scope's visibility is not considered when dumping const vals [ABI Validation JVM]KT-78305Private constructor is written in ABI dumpKT-82724BCV incorrectly reports generated@JvmOverloadsdeclarations as publicKT-78367Internal constructor infiltrated into a dumpKT-78366Protected method of enum should not be included into a dumpTools. Build Tools API
New Features
KT-83794Make BTA JVM Compiler Arguments Type-SafeKT-80963BTA: Add structured information about reported messages to KotlinLoggerKT-73037Add input (like compiler arguments) changes trackingKT-82791BTA: introduce an option forExecutionPolicy.WithDaemonto control the daemon log files pathKT-84453SSoT: provide a unified way to convert Enums to StringsFixes
KT-86395[BTA] forward-compatibility violation: NoSuchMethodError on JvmSnapshotBasedIncrementalCompilationConfiguration. breaks ICKT-80679Add support for the Build Tools API [ABI Validation]KT-85294BTA: Replace hardcoded@sincein KDoc with dynamic versioningKT-85035Don't expose X_COMPILER_PLUGIN_ORDER in CommonCompilerArgumentsKT-85391[BTA] Hide boilerplate required to load isolated BTA implementationKT-85447BTA: deprecate JvmCompilerArguments.contains (warning)KT-82390[BTA] Remove deprecated non-builder factory functions and classesKT-84850Make kotlin-home type safeKT-84867Make Xphases-to-* arguments type-safeKT-85094Make Xwarning-level type safeKT-85205Make Xdump-perf type safeKT-85204Make Xdump-directory type safeKT-84906Make enum-based common arguments type-safeKT-84322Make X_PROFILE BTA compiler argument type safeKT-84825Make script-templates type safeKT-84546Replace raw string path arguments with type-safe PathListTypeKT-84705Make Xjdk-release to type-safeKT-85167Make Xjsr305 type safeKT-85069Make Xnullability-annotations type safeKT-84738Make Xscript-resolver-environment type safeKT-85082Make Xignored-annotations-for-bridges type safeKT-84324Make X_ADD_MODULES BTA compiler argument type safeKT-84338Make enum BTA JVM compiler argument type safeKT-84325Make JVM_DEFAULT BTA compiler argument type safeKT-75837IC: Shrunk classpath snapshot name is hardcodedKT-84228BTA: Improving KDoc generation for Enums and Custom TypesKT-85738BTA forward compatibility: NoSuchFieldError on X_IGNORED_ANNOTATIONS_FOR_BRIDGES when API 2.3.0 is used with impl 2.4.0KT-84436Сompiler warnings are missing under Gradle -q option with -WerrorKT-85072AbstractMethodError when calling discoverScriptExtensionsOperationBuilder with pre-2.4.0 compilerKT-84523Add more forward compatibility testsKT-84187[BTA] Add more build operation immutability testsKT-84219[BTA] Add additional tests on basic metrics collectionKT-83781Add additional tests for KT-79975 (BTA ability to cancel build operations)KT-85092[BTA] Update BTA Backward Compatibility Testing: 2.3.20-RC → 2.3.20KT-85439BTA: Warn or error when incompatible compiler arguments are passed via applyArgumentStringsKT-75540Build Tools API Should Reject -Xbuild-file ArgumentKT-85333Add BTA tests for BACKUP_CLASSES and KEEP_IC_CACHES_IN_MEMORY behavior after compilation errorKT-84770BTA: default options cannot be retrieved from many option objectsKT-85224Add@ExperimentalArgumentApito compiler argument DSL typesKT-84953Fail TC build if generated files changeKT-85189Refactor path argument types: flatten hierarchy and improve namingKT-82335Promote the deprecation level for BTA prototype to the ERROR levelKT-84984Runtime NPEs caused by null return in CompilerMessageRenderer implementationKT-84015Introduce detection of custom script names to new BTA APIKT-83972BTA: use isolated classloader for loading the BTA implementation in integration testsKT-84181More verbose warning when CRI is enabled without using BTAKT-84449Platform-Specific File.pathSeparator Hardcoded During SSOT GenerationKT-84249Fix hardcoded path separator in -Xprofile argument to support absolute paths on WindowsTools. CLI
Fixes
KT-84609Remove Nullability from Array-based CLI Compiler ArgumentsKT-85414Argument DSL:delimiter = KotlinCompilerArgument.Delimiter.PathSeparatorgenerates invalid Kotlin codeKT-85004Set proper since version for language feature about property annotation targetingKT-84220Enable Context Parameters by default in LV 2.4KT-84188Create CLI argument for explicit context parametersKT-84999Don't poison binaries withImplicitJvmExposeBoxedlanguage featureKT-85001ConvertImplicitJvmExposeBoxedlanguage feature to analysis flagKT-83341Don't use the extension point registration mechanism from Intellij for K2 extensionsKT-56850Separate K/Wasm CLI entry point from K/JS CLIKT-84132CLI: regression in deduplication of same-value argumentsKT-83261No error if pass an arbitrary string to a CLI argument that changes language featuresKT-83172Boolean CLI argument for a language feature with explicit false value is allowed but has no effectTools. CLI. Native
KT-82482Compiler plugins are not propagated to frontend environment in ONE_STAGE_MULTI_MODULE Native modeTools. Compiler Plugin API
KT-85969KtLint incompatible with Kotlin 2.4.0-Beta2 (parsing errors / Extensions storage issue)KT-85133Drop deprecated K1 specific methods from IrPluginContextTools. Compiler Plugins
New Features
KT-66808PowerAssert: Add support for third-party assertion librariesKT-69036Power-Assert indent multiline valuesKT-75656PowerAssert: Create runtime libraryFixes
KT-83931Power Assert: Compilation fails when using the metro pluginKT-86170PowerAssert: Stabilize runtime ABI for initial releaseKT-85250PowerAssert: Automatically add runtime library dependencyKT-75873PowerAssert: display callable reference value under '::'KT-85151PowerAssert: Surround string and character values with quotesKT-85184PowerAssert: Annotation may only be used on expect and non-override functionsKT-85178PowerAssert: Crash when transforming IrCall without CallableIdKT-66807PowerAssert: Improve output diagram formattingKT-85089PowerAssert: Wasm CompileError when usingPowerAssert.explanationKT-75266PowerAssert: arrayOf() isn't displayed on the diagramKT-67332"IndexOutOfBoundsException: Cannot pop operand off an empty stack." caused by function referenceKT-83330Lombok. An add methods with@Singularannotation in Java record doesn't work from kotlinKT-83204Lombok. If@Dataand@NoArgsConstructorare used together, then the constructor from@Datashouldn't be availableKT-83336Lombok. IllegalAccessError for constructor if@Valueand@Builderare applied and used from another packageKT-83352Lombok. FileAnalysisException when@SuperBuilderis used with@BuilderKT-83325Lombok. Constructor with parameters is unavailable for a class with@BuilderTools. Compiler plugins. Serialization
KT-85963IncompatibleClassChangeError: Expected non-static field $stableon deserialization of@Serializabledata class when Compose compiler plugin is applied before Serialization pluginKT-85554Serialization: "IndexOutOfBoundsException" on property generated by Compose pluginTools. Gradle
New Features
KT-76197Write Kotlin compiler warnings and errors to Problems APIFixes
KT-86346Compiler warnings printed twice in console — once asw:and again as Gradle "Problem found:" blockKT-69701Gradle: module name is passed inconsistently to different types of compilationsKT-85373Compile against Gradle API 9.5.0KT-85374Run tests against Gradle 9.5.0KT-80448Remove internal & deprecated API from ExtrasProperty.ktKT-69830Support Gradlecom.gradle.develocityplugin in KGPKT-85509Remove deprecated API in the 2.4.0 releaseKT-83858Compatibility with Gradle 9.4.0 releaseKT-84144Bump the minimal supported AGP version to 8.5.2KT-85562Failed to invoke getCompilation on org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink_Decorated on project importKT-85590Gradle: cannot create task MainKt.main() due to missing defaultSourceSetNameKT-74451Deprecate access to Kotlin source sets in Android extensionKT-82960Remove deprecated enableKotlinToolingMetadataArtifact in 2.4.0KT-84377Broken package-list file on KGP/CMPG documentation pageKT-85412Module name is not sanitized with older Kotlin compiler versionsKT-65566Use the new ConfigurationContainer consumable method to create consumable configurationsKT-83775Migrate KGP functionalTest to junit5KT-85433Gradle: deprecate non-BTA JVM compiler execution modeKT-83860Run tests against Gradle 9.4.0KT-75004KGP: improve messaging when multiplatform tasks are disabled on incompatible OSesKT-83859Compile against Gradle API 9.4.0KT-82847Raise deprecation to error for LanguageSettings.enableLanguageFeature DSLKT-84053Deprecate support for Gradle 7.6-8.13 versionsKT-78659Remove 'kotlin-android-extensions' plugin idKT-79924Make enableKotlinToolingMetadataArtifact deprecatedKT-82933Add a tab with results in TCKT-83130[ToolingDiagnostic] incorrect problem ID formatting for acronyms and undefined locations in Gradle8 problems reportsKT-84143Reduce usage of Project in Tooling DiagnosticsKT-83126Remove out-of-process compilation modeKT-80466Gradle: remove getPluginArtifactForNative()KT-81834Compile against AGP 8.13 APIKT-77498Test .swiftmodules more accurate in SwiftExportITKT-84141Add convenient host checkKT-83592Enable AFU in FusStatisticsIT.testKotlinxPlugins test after next AFU releaseTools. Gradle. BCV
KT-86268ABI validation tasks fail with Unsupported platform toolchain type when using kotlin.compilerVersion pointing to an older compiler after BTA migration in 2.4.0-Beta2KT-80685Simplify Gradle DSL [ABI Validation]KT-83486Create tasks only if abiValidation block called explicitly [ABI Validation]KT-82410Remove wordlegacyfrom DSL [ABI Validation]KT-83999ABI validation: Groovy DSL doesn’t deprecate included/excluded filters, allowing four filter configs instead of twoKT-84461Remove the use of abi-tools-api from KGP [ABI Validation]KT-84100Add Deprecated annotation to legacyDump block and property [ABI Validation]KT-84365Gradle plugin of abi-validation should precisely define output filesKT-83898Classes produced by JvmMultifileClass ignore filtersTools. Gradle. Compiler plugins
KT-85343Update Compose Gradle plugin deprecations before 2.4Tools. Gradle. Dokka
KT-82984Support AGP9 in Dokka Gradle PluginTools. Gradle. JS
KT-81037K/JS, Wasm: Remove deprecated internal JS functionsKT-81034K/JS, Wasm: Remove deprecated public constructors of JS declarationsKT-81030K/JS, Wasm: remove deprecated NodeJsExec.createKT-81036K/JS, Wasm: Remove deprecated ExperimentalDceDslKT-81040Gradle: Remove deprecated Kotlin/JS tasks constructorsKT-64275Gradle: remove deprecated symbols related to the legacy JS targetKT-84753DeprecateKotlinJsCompilerTypeandKotlinProjectExtensionmethods using itKT-81033K/JS, Wasm: Remove deprecated wasm declarations in "js" packageTools. Gradle. Multiplatform
Fixes
KT-84767K/N: associateWith triggers warning about friend-modules libs not included in -library argumentKT-82265Remove Android source set layout v1KT-82230Cleanup 'org.jetbrains.gradle.apple.applePlugin' plugin usageKT-81117Withandroid.builtInKotlin=true(AGP 9.0), usingkotlin-multiplatformplugin will fail withCannot add extension with name 'kotlin'KT-86174Project sync from cached checkout fails in convertSyntheticImportProjectIntoDefFileIphoneos with 'fatal: Needed a single revision'KT-85877The number of SPM direct dependencies is multiplied on number on targetsKT-85706SwiftPM Import: Updating package version in build script updates version in the lock fileKT-84085Remove deprecated gradle property kotlin.kmp.isolated-projects.supportKT-83370Incorrect metadata transformation for stdlib's webMain source setKT-69571compileNativeMainKotlinMetadata not handling project/prebuilt substitutionsKT-84533KMP: compileCommonMainKotlinMetadata: "Unresolved reference" for androidx.savedstate from Maven (works with project() dependency)KT-84669SPM import: If iosApp dir located outside of the project, checkSyntheticImportProjectIsCorrectlyIntegrated will failKT-84597Remove trailing comma for dependencies blocks settings in Package.swiftKT-82895kotlin-stdlib import is flaky in commonTest in 2.1.21KT-81958Redundant “android target already exists” error when migrating to com.android.kotlin.multiplatform.library with androidTarget {}Tools. Gradle. Native
New Features
KT-83873Redo how dynamic library linkage and promotion are handledKT-83863Persist Package.resolved files and reuse them in incremental SwiftPM importFixes
KT-85984linkReleaseFrameworkIosSimulatorArm64 is executed during Debug iOS build since 2.4.0-Beta2KT-85510Cleanup native tasks APIKT-84656Concurrent issue in downloadKotlinNativeDistributionKT-85502Swift PM Import: "Library not loaded": KotlinMultiplatformLinkedPackage.framework is not copied next to the executableKT-85561SwiftPM lock-files metadata resolution fails with NoMatchingGraphVariantsException in external KMP projectsKT-85128Refactor SwiftPM import lock tests and test utilsKT-83681Parallelize parts of SwiftPM import pipeline that are called during importKT-83874Linker hack doesn't work when clang uses response filesKT-86024Empty main compilations cause w: [COMPILER_ARGUMENTS_WARNING] There are libraries in -friend-modules CLI argument that are not included in -library CLI argument:KT-69896Native: output to stderr ends up in the Gradle logKT-85708[KGP] dSYM copy task ignoresisStaticdue to eager read before framework configurationKT-84262integrateEmbedAndSign produces an incorrect Gradle call for the root projectKT-84730Add Kdocs to SwiftPM import APIsKT-84558Upstream SwiftPM import workKT-82824Make linker hack path relativeKT-84508Add a warning on usage macos_x64 as hostKT-84692Misleading error message for disableNativeCache DSL without required Opt-InKT-83680Remove trailing commas from the package manifest to be compatible with pre-16.3 XcodeTools. Gradle. Wasm
KT-86457[Wasm, Gradle] BinaryenExec.standardOutput is silently ignored after migration to Gradle WorkersKT-84137K/Wasm: Support binaryen run with multiple filesKT-85974K/Wasm: Do not set -Xir-per-module for Wasm tasksKT-83566K/Wasm: Support Wasm per module/klib compilation in Gradle pluginKT-85046K/Wasm: Wasm per-module Gradle integration tests on WindowsKT-84230Wasm: Fix test WasmYarnGradlePluginIT.testWasmUsePredefinedToolingTools. Incremental Compile
KT-85387BTA: switch the default value ofMONOTONOUS_INCREMENTAL_COMPILE_SET_EXPANSIONtotrueKT-85386BTA JVM IC: 'moduleName' is null!KT-84450Star imports are not reported via FirImportTrackerComponentTools. JPS
KT-81579JPS: -Xwarning-level=DEPRECATION:warning not supportedTools. Kapt
KT-84094Kotlin daemon holds file locks for too longKT-32743Kapt, Maven: Do not include compile classpath entries in the annotation processing classpathKT-41217Running kapt with Maven does not seem to include the compilation classpathKT-80569K2 KAPT: Class Literals Missing in Explicit Annotation Value ParametersKT-18791Kapt: Constants from R class should not be inlinedTools. Maven
New Features
KT-85121Maven: enable configuration inputs tracking in BTAKT-84386Support Maven Toolchains in kotlin-maven-pluginKT-85317Auto‑align jvmTarget with the project’s Java levelFixes
KT-74001Support monotonous dirtySet expansion in MavenKT-76062Maven: remove Kotlin script execution supportKT-84101Maven: compile and test-compile handle sourceDirs inconsistentlyKT-84653Add integration test for KAPT with smart defaults in mixed Kotlin+Java projectsKT-84778Add integration test for auto-bind execution order in mixed Kotlin+Java projectsKT-85146Maven: Adding stdlib as smart-default may break maven dependency resolution for other pluginsKT-84793Use kotlin bootstrap to build kotlin-maven-pluginKT-83109Remove beanshell and groovy verification in kotlin-maven-plugin-testKT-83110Remove dependency to intellij platform from kotlin-maven-plugin-testKT-83113Configure kotlin.git/.idea to work nicely with maven-kotlin-plugin-test testsKT-83114Migrate kotlin-maven-plugin-test from maven.invoker to junit6 + maven-verifierTools. Performance benchmarks
KT-82928Support local run for new benchmarks infraKT-84283Add scenario generator for performance testsKT-83257Parse gradle profile reportTools. REPL
KT-77816REPL: Support forconstpropertiesKT-74683[K2 Repl] Does not support suspend functionsKT-84483[K2 Repl] NullPointerException in Analysis when using custom classesKT-84803[REPL] FirReplSnippet: provide the eval function symbol instead of the name (evalFunctionName)KT-84160[REPL] Resolve eval function during implicit bodyKT-83689[K2 REPL] Create raw FIR tests for repl snippetsKT-82554[REPL] Fix unresolved reference when using dataframe compiler-pluginKT-82578[K2 REPL] Split snippet property declaration and initializationKT-82503[K2 Repl] Nested class annotations are not available in the next snippetTools. Wasm
KT-84396[Wasm] Support multimodule in incremental compilationKT-75086Wasm: Deprecate and remove D8 in js packagesv2.3.21: Kotlin 2.3.21Changelog
Backend. Wasm
KT-84610[Wasm] Failed to compile klibs in IC modeCompiler
KT-84566Prevent launching Default dispatcher threads from IJ SDK in kotlin compilerKT-85358Native: roll back the workaround for KT-84678 once MapLibre has been properly fixedKT-85626@JvmRecordin commonMain breaks compileCommonMainKotlinMetadata with "Cannot access 'java.lang.Record'"KT-85405Postpone/RevertDontIgnoreUpperBoundViolatedOnImplicitArgumentsKT-84678K/N: Undefined symbol from SPM-added ObjC frameworks when linking iOS targetKT-85021False positive SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATIC error in multi-module projectJavaScript
KT-82395Support top-level declarations from compiler plugins in JS incremental compilationKT-84475K/JS: false-positive exportability warnings in multi-module projectKT-84633Kotlin/JS: "Serializer for class not found" error when IR output granularity iswhole-programKT-85047Kotlin/JS:@JsStaticon suspend fun of class companion generates incorrect d.tsKT-84517K/JS: bad mappings data in outputted Kotlin stdlib source mapLibraries
KT-71848Kotlinx.metadata: AddCompilerPluginDatainto Km APINative. C and ObjC Import
KT-85399Kotlin/Native: TypeCastException when casting ObjC Protocol MetaClass with genericSafeCasts enabledKT-85508K/N: TypeCastException when using nw_parameters_create_secure_tcp block parameter on 2.3.20Tools. Gradle
KT-84729Update Gradle plugin-publish version to enable configuration cache badge on Gradle plugins portalTools. Gradle. Compiler plugins
KT-85257AGP/Compose: MergeMappingFileTask clears R8 artifacts due to@OutputDirectoryannotation on AGP 9.1+Tools. Scripts
KT-85105Scripts: JVM backend internal error (IR lowering) when scratch file contains anonymous objectKT-85103Exception while generating code when explain destructuring declsKT-84842scriptCompilationClasspathFromContext behavior changed from 2.3.10 to 2.3.20KT-85029Kotlin Scripting: ScriptDiagnostic reports "at null" instead of error locationTools. Statistics (FUS)
KT-85628KGP: composite build FUS metrics fail on access of 'configurationTimeMetrics'v2.3.20: Kotlin 2.3.20Changelog
Analysis API. FIR
New Features
KT-78090Implement stubs support for new conditional returns and holdsIn contractsFixes
KT-82948'FirRegularClass' expected as a containing declaration, got 'FirTypeAliasImpl'KT-83467Package-level JSpecify annotations are ignored when coming from jars or librariesKT-82057K2. Cannot infer type parameter 'R' in Ktor routing post() function with explicit response typeKT-82846AA: unresolved KtExpression.expressionType for the reference to the parameter with default valueKT-80485False positive UNRESOLVED_REFERENCE on nested interface from super-super class in the super type position inside an anonymous objectKT-82772Flaky false positive deprecation warning on PersistentMap.put in Kotlin repo in IDE modeKT-76487StdLibSourcesLazyDeclarationResolveTestGenerated.testWrappedInt is unstableKT-82618Various tests are failing with NPE in kt-master after updating the compiler on 19.11.25KT-82076Error querying members of JavaClass created for SymbolLightClassForAnnotationClass during library analysisKT-71596Include Js/Wasi checkers in AbstractLLFirDiagnosticsCollectorKT-82085No OUTER_CLASS_ARGUMENTS_REQUIRED on type parameter bound in IDEKT-81873Provide a way of including traces in phase JFR eventsKT-71929Consider leaving the non-post-compute version at EnhancementSymbolsCache.enhancedFunctionsAnalysis API. Infrastructure
KT-83173Analysis API Tests: Library names with RC versions aren't sanitisedKT-65140LL FIR: Implement AbstractFirPsiJsDiagnosticTest for LL FIRKT-82212[Analysis API, LL FIR] Implement AbstractDiagnosticsFirWasmTest and AbstractDiagnosticsFirWasmWasiTest for LL FIRAnalysis API. Light Classes
KT-82227Value classes should expose regular static methodsAnalysis API. PSI
KT-81710'KtTypeReference.getTypeText' does not account for 'suspend' modifier on suspend lambdasKT-82258Prepare PSI for migration from context receivers to context parametersKT-81074KDoc: List rendering is brokenAnalysis API. Providers and Caches
KT-82449K2 IDE Analysis Freezes During Gradle Sync (Recursive Module Dependency Computation in KotlinModuleDependentsProviderBase.computeTransitiveDependents)KT-82629'collectDiagnostics' returns stale syntax error after editor fixKT-74907Analysis API: Apply platform-based library module content restrictions consistentlyAnalysis API. Standalone
KT-81107AA: KtSourceModuleBuilder.sourceRoots doesn't works with symbolic linksAnalysis API. Stubs and Decompilation
KT-82792Stub for KtValueArgumentList inside KtAnnotationEntry should be present if it is present in psiKT-82527TypeClsStubBuilder.createFunctionTypeStub throws NullPointerExceptionKT-82558Deserialized DNN type should have a fully qualified AnyKT-81928KaArrayAnnotationValueImpl.values missing first elementKT-82139Support contracts for property accessorsKT-82198Support context parameters in contractsAnalysis API. Surface
New Features
KT-82851Property accessors should inherit KDoc from the parent propertyKT-63339Analysis API: Provide a way to extract KDoc for symbolsKT-79070KaTypeProvider: add API to build a default type with star projectionsKT-66566AA: api to create functional typesKT-66043KtTypeCreator doesn't provide a way for creating annotated typesPerformance Improvements
KT-83694Provide psi-based implementation ofKaDeclarationSymbol#isExternalKT-70868KaSymbol: support PSI-only visibility and modality for the case without compiler pluginsKT-81627KaFirSymbolDeclarationOverridesProvider#processOverrides should process only relevant declarationsFixes
KT-83152[Analysis API, KDoc] Make class name links on constructors point to the classKT-83695DeprecateKaSymbolInformationProvider#{getter, setter}DeprecationStatusKT-82853Add a convenience property for testing declarations for effective external-nessKT-83226Support "Collection literals" in the Analysis APIKT-83225Support "@IntroduceAt" in the Analysis APIKT-83222Support "Improve use-site defaulting for annotations" in the Analysis APIKT-83351Rename KaSession context parameter from 's' in bridges to something nicerKT-83199Clarify API around extension pointsKT-83074Inner enum entry class has incorrect default visibilityKT-82442Add Ka prefix to org.jetbrains.kotlin.analysis.api.symbols.AdditionalKDocResolutionProviderKT-82443Add Ka prefix to org.jetbrains.kotlin.analysis.api.symbols.DebugSymbolRendererKT-82441Add Ka prefix to org.jetbrains.kotlin.analysis.api.compile.CodeFragmentCapturedValueKT-82439Add Ka prefix to org.jetbrains.kotlin.analysis.api.components.DebuggerExtensionKT-82438Add Ka prefix to org.jetbrains.kotlin.analysis.api.components.DefaultTypeClassIdsKT-68577asPsiTypeandmapTypeToJvmType: leading delimiter for class in a root packageKT-81734MIssing "ARGUMENT_TYPE_MISMATCH" caused by self-referential generic typeKT-82856Redesign KotlinReferenceProviderContributor to make it extensibleKT-82615ClarifyKtReference#resolvesByNamescontractKT-82534No expected type for property accessor without bodyKT-82406Add a test to ensure that all top-level classes in the Analysis API Surface haveKaprefixKT-78397investigate if there is a need in Extra support for the "various little features in contracts"KT-74009Analysis API: Expose "isOverloadable" check for callable symbols similar to "OverloadChecker.isOverloadable"KT-78399Check return value - check how we see from Java(+Stub) we see “annotated” signaturesKT-80357[Analysis API]KaType.enhancedTypedoesn't enhance type parametersKT-73659Analysis API: The name ofKaType.enhancedTypeis too generalKT-80545[Analysis API] DeprecateKaFunctionType.arityKT-77708K2 Mode: Potentially redundant smart cast highlighing when passing smartcasted expressions as argumentsKT-81264K2 AA:KaValueParameterSymbol.hasDefaultValueis false for overriding or actual functionsKT-81166Forbid the usage of KaSessionComponent implementation types directlyKT-74801Analysis API: Publish/subscribe to modification events with a single message bus topicBackend. Native. Debug
KT-81741Native: stepping into data class hashCode in lldb goes to line 1Backend. Wasm
New Features
KT-81485[Wasm] DebuggerCustomFormatters generation support for single module modeKT-81483[Wasm] Typescript generation support for single module modeKT-81484[Wasm] Dwarf generation support for single module modePerformance Improvements
KT-83839K/Wasm: CMP. Load time on Safari significantly increased with Kotlin = 2.3.20-Beta1KT-81524Unnecessary Any-JsAny conversions are generated for external instanceofsFixes
KT-82732K/Wasm runtime crash when using fun reference: convertKotlinClosureToJsClosureKT-82649K/Wasm: Rewrite StringBuilder to use JsStringKT-73240K/Wasm: consider using JS String Builtins proposal in String implementation for wasm-js targetKT-83995K/Wasm: 2.3.0 -> 2.3.20-Beta1 degradation in arrow testsKT-82309K/Wasm: refactor _initialize functionKT-70075Wasm: "OutOfMemoryError: GC overhead limit exceeded" during testsKT-83046K/Wasm: don't use StringBuilder implicitly for string concatenationsKT-82645K/Wasm: wasmJs use js "String" for number2String conversionKT-79937K/Wasm: support kotlin.js.nativeInvoke annotationKT-67461Use new lowering phase creation API in Wasm backendKT-83664Wasm: Colon and space are not sanitized in output file namesKT-65779JsExport declaration name clashKT-82202[Wasm] SourceMap generation support for single module modeKT-82162[Wasm] Run single module tests with standalone vm'sKT-81325[Wasm] Remove string pool initialiser dependent codeKT-73238K/Wasm: stop using linear memory inside our codeKT-83025Wasm: Compose application is not loadingKT-73239K/Wasm: use JS String Builtins proposal to transfer strings to and from JSKT-83194K/Wasm: create WasmIR test infrastructureKT-65234K/Wasm Ensure that fp operations are aligned with other b-endsKT-81856K/JS/Wasm interop: external instanceofs do not link in singleModule modeKT-81610[Wasm] Add CLI test for performance metrics for klibs->binary scenarioKT-81550Incorrect generation of .wat filesKT-71533K/Wasm + K2: no error on KClass::qualifiedName usagesCompiler
New Features
KT-75736Enable reading/writing annotations in metadata on JVM by defaultKT-79330Implement the first version of inference for Collection LiteralsKT-83401Collection literals: support different types of expected types for CLKT-55548JSR-305: Overload resolution ambiguity: Platform Types vs Kotlin TypesKT-74860Support Unit coercion (incl. fun refs) in unused return value checkerKT-13968Support vertx nullable annotationKT-79656Useorg.jetbrains.annotations.UnmodifiableViewand/ororg.jetbrains.annotations.Unmodifiableto infer read-only types for Java entitiesKT-81684Implement explicit passing of context arguments using named syntax [TEST_ONLY]KT-80492Checkers for operatorofKT-82638Collection literals: resolve to factory functions for standard library classesKT-82467Improve binary and JVM compatibility by generating bridges for abstract interface methodsKT-82655Bridges generated for non-fake overrides shall include annotations from target methodsKT-74223Move Kotlin/Native TestProcessor phase to the first phaseKT-27090Support contracts in getter and setter for top-level extension propertiesKT-74809Support unnamed local variablesKT-45683Allow generics in contract type assertionsPerformance Improvements
KT-81974Do not eagerly initialize reflection for KProperty objects for delegated propertiesKT-83697Native: increased bitcode produced with enabled safe castsKT-83036Native: too many casts emitted with -Xgeneric-safe-casts=trueKT-80061Compiler (or IDEA) hangs due to importing large Kotlin reflect functions (e.g. KFunction999999999)KT-68592Investigate performance implications of enabling -Xjvm-default for ir.tree moduleKT-73687Inefficient KtCommonFile#getFileAnnotationListKT-71673Consider making EnhancementSymbolsCache. enhancedFunctions using simple cacheFixes
KT-84773Annotations not persisted in IR for internal external functionsKT-78783K2: absence of warning for KTLC-284 migrationKT-81553INITIALIZER_TYPE_MISMATCH and ASSIGNMENT_TYPE_MISMATCH is reported on the entire initializerKT-83395Kotlin/Native 2.3.0 iOS release framework fails with Invalid LLVM module (PHI node type mismatch)KT-84620Incorrect optimization of property delegationKT-81567Add a use-site warning if a@DslMarker-marked annotation is used on entities where it is a no-opKT-81700flaky overload resolution behaviors (false-positive errors, different final candidates, compile-time failures)KT-83372compileDebugKotlinAndroid hangs in 2.3.0 with SQLDelightKT-82579Update specificity rule for context parametersKT-83590Some explicit backing fields must still be considered private-to-thisKT-83849False-positive NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS forOptional.orElse(null)callKT-84192"Member overrides different '@Throws' filter from" caused by overriding in different moduleKT-72994K2: Remove resolution to context receiversKT-80247No diagnostic on unresolved type annotation from a dependency in an inferred typeKT-78730Move more LLVM-agnostic code to compiler/ir/backend.native or compiler/ir/backend.commonKT-74051Add a Continuation for tail-call suspend functionsKT-83984Data races around kotlinx.serialization plugin protobuf extensions registrationKT-83317ClassCastException: with cast kotlin.UInt to java.lang.Number when defining constantKT-83031K2: unstable resolution of EnhancedNullability from type-use NotNull in presence of unused codeKT-83824Delegated property in Gradle DSL fails to compileKT-83657[K/N] Pre-codegen inline produces invalid bitcodeKT-81555Kotlin scripts: top-level name-based destructuring with _ = prop fails with “exception while generating code”KT-83314JSpecify@NullMarkedchanges Java equals(Object) to equals(Any?) causing override conflict in Kotlin 2.3KT-83282JvmExposeBoxed: Duplicate annotation interface kotlin.coroutines.jvm.internal.DebugMetadata in class %class%$1 for suspend inline class valueKT-78443Refactor session component initialization for multi-target compilationKT-83427Arguments of plugin-generated annotations are serialized incorrectlyKT-83538OPERATOR_RENAMED_ON_IMPORT is not reported for 'provideDelegate' operatorKT-83537OPERATOR_RENAMED_ON_IMPORT is not reported for 'of' operatorKT-82721Inconsistent explicit backing fields behaviorKT-83589Explicit backing fields don't likely work with intersection overridesKT-81951K2: Another false positive "Assigned value is never read" in composable functionKT-83588Explicit backing field is falsely accessible from a subclass via a substitution overrideKT-82849Collection literals (minor): collection literal should only be resolved to operatorKT-83363VerifyError: "Bad type on operand stack" on multi-line suspending call with default parameter value since API version 2.4KT-83570K2: Resolve problematic IR when referencing Kotlin const from annotation in JavaKT-83362Starting from 2.3 DefaultImpls bridge functions deprecated with the level HIDDEN are no longer syntheticKT-9182Java interoperability: Overload resolution ambiguity on Java's@NotNulland primitivesKT-83633Forbid inline functional context parameters in inline functionsKT-83449compile-time IR failure on smart cast information leaking from capturing closureKT-82375AddATOMIC_REF_WITHOUT_CONSISTENT_IDENTITYwarning for any argument without consistent identityKT-82524Access to a companion that requires opt-in is possible without opt-inKT-83367VolatileFieldsLowering may emit wrong parameter types for atomic intrinsic callsKT-83382K2: Unreachable method exit breaks MUST_BE_INITIALIZED checks for succeeding value declarationsKT-82211False positive SENSELESS_NULL_IN_WHEN with nullable varKT-83157ExplicitBackingFields: "Property with explicit backing field should be final" in 2.3.0KT-83269K2: Wrong types in IR for explicit backing fieldsKT-68606Argument type mismatch, despite being from the same star-projected typeKT-83324Native: problem with loops handling in types computation passKT-83241K2: "NoSuchElementException: List is empty" with top-level destructuring declaration and lambda initializerKT-82277MisleadingInapplicable candidate(s): fun <K> WHEN_CALL(vararg branches: K): Kwhen a when expression branch contains an unresolved referenceKT-80839Get rid of an obsolete -Xcompile-builtins-as-part-of-stdlib flag once previous changes are bootstrappedKT-82900Language Feature EnhancedBridgesGenerationKT-82651Do not generate self-recursive bridges in JVM backendKT-5486Better errors for integers with leading zeroKT-83185Kotlin repeatable annotations are incorrectly deserialized from bytecodeKT-82863@NoInferregression since 2.2.20KT-82376Header mode: Index out of bounds when generating bodies of data classKT-82311Header mode: Error expression when assigning function declaration to a propertyKT-82408Header mode: Java files are not compiled successfullyKT-82378Header mode: Sequence contains no element matching the predicateKT-82407Header mode: Backend Internal error: Exception during IR loweringKT-81763Incorrect comparison result when using elvis ?: with nullable Long valuesKT-83153Properly ignore contract statements in the Return Value CheckerKT-83076Don't reportWRONG_JS_INTEROP_TYPEon expect types during metadata compilationKT-78589"Class does not have member field" caused by delegation from a Java to Kotlin classKT-82640K2: CCE on green codeKT-82684"Don't know how to compile annotation value ERROR_EXPR" on incorrect array literal in annotation default argumentsKT-81948K2: ClassCastException: "java.lang.String cannot be cast to java.lang.Void" when calling@NullableJava functionKT-82788false-positive duplicate JVM class name error in IJ monorepoKT-82841"kotlin.NoWhenBranchMatchedException" inwhenwith!ischeck & non-sealed class in the middle of hierarchyKT-82844"when" with no branches does not evaluate subject (side effects ignored)KT-81625Incorrect empty parameters parsing (comma is highlighted in red)KT-81193K2: SOE fromAbstractTypeApproximator.approximateToSuperTypewith local enum classKT-65059Stack overflow when typechecking an Elvis expression with deeply generic valuesKT-82555@Deprecated(HIDDEN)` objects not skipped when resolving qualifiersKT-82737Leaked type variable in diagnostic when top-level lambda with uninferred type parameter has non-functional expected typeKT-78019Change K1 API deprecation level from Warning to ErrorKT-82683K2: FIR2IR: compile-time JVM codegen failure on an argument of function subtype for a KSuspendFunction parameterKT-82671Do not report ignorability mismatch on override/actualization if the function returns Unit typeKT-82506Misleading compilation warning: "This class is not recommended for use in Kotlin. Use 'java.util.Map' instead"KT-52498Test privateSuperType.kt is failing with caches enabledKT-82336Header mode: Cannot infer argument for type parameter TKT-69326Inference chooses controversial order to fix variablesKT-82545Handle data class with extra components in migration warning for name-based destructuringKT-82303Improve UNSUPPORTED_FEATURE message when compiler argument has a parameterKT-81866K2: False positive ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL caused by smart-casted@RestrictsSuspensionreceiverKT-13412Improve error message on callable reference with expression of nullable typeKT-82466KotlinIllegalArgumentExceptionWithAttachment when return is used in explicit delegation expressionKT-82454Local types aren't approximated in public declaration typesKT-82487False positive REDUNDANT_VISIBILITY_MODIFIER inside private classKT-82369[K2 REPL] Crash in the serialization plugin backend with "unable to transform declaration"KT-82243Usage of nested type aliases is forbidden despite the feature flagKT-62900K2: Expected expression to be resolved during Fir2IrKT-81941IllegalArgumentException: class org.jetbrains.kotlin.psi.KtValueArgument is not a subtype of class org.jetbrains.kotlin.psi.KtExpression for factory POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATIONKT-80741Fix rendering of inner classes with generic outer classesKT-82331Do not propagate context parameters from classes to constructorsKT-77276K2: Wrong scope for annotation arguments for the parameters of a secondary constructor headerKT-77275Inconsistency between scopes for primary/secondary constructor headersKT-15152Improve error message for unresolved reference for delegation specifier and primary constructor callKT-81498Make Kotlin/Native stdlib in distribution reproducibleKT-81408Allow local-variable-target annotations on destructuring declarationsKT-82012Annotations without parentheses on full form of name-based destructuring don't workKT-81915Exception when analysing 'when' expression with annotated expression as a subjectKT-78364Static methods are not generated for companion object JvmStatic property accessors with JvmExposeBoxedKT-81838Prohibit usage of nested type aliases (from lib) for sources with LV < 2.3KT-81357Forbid compilation of code with explicit root_ide_package in CLI modeKT-73138K2: "Assignment type mismatch" when class name is underscore_KT-82169Add quotes to message of WRONG_NUMBER_OF_TYPE_ARGUMENTSKT-78386JvmExposeBoxed (with no name) + JvmOverloads + JvmName produces ambiguityKT-78358Propagated JvmExposeBoxed annotation doesn't copy JvmName argumentKT-81699Move native klib compilation to a separate moduleKT-81692Decouple compilation of Native klib from the Native backendKT-80673Consider forbidding/minimizing usages of ClassId.isLocal and CallableId.isLocalKT-81376False negative UNEXPECTED_TRAILING_LAMBDA_ON_A_NEW_LINE & bad positioningKT-81946false-positive JAVA_CLASS_ON_COMPANION in case of an explicit companion referenceKT-74461K2: Render function types nicelyKT-81875NCDFE: kotlinx/coroutines/internal/intellij/IntellijCoroutines at :compiler:multiplatform-parsing:jvmTestKT-49722Report NOT_YET_SUPPORTED_IN_INLINE for inherited default parameters with inline functionKT-81913Inapplicable candidate when vararg-adaption for callable reference might be used (array parameter)KT-81841Inapplicable candidate when vararg-adaption for callable reference might be used (generic parameter)KT-39697"Cannot infer type parameter" in map with java static or global method referenceKT-81896Improve RedundantCallOfConversionMethod inspection for@UnsafeNumberannotated typealiasesKT-66413Incorrect line mapping in suspendable code before suspend call without parametersKT-80525Update IntelliJ SDK dependency to 251.27812.49KT-81808Setting hasDefaultValue = true in irValueParameter() crashes the compilerKT-78927False positive 'USELESS_JVM_EXPOSE_BOXED'KT-81703Drop obsolete K1 frontend code from Kotlin/NativeKT-81698DecoupleSpecialBackendChecksTraversalfrom Native backendKT-81687Different LightTree and PSI outputs when annotated class-like declaration is used as an expressionKT-81302False positive: Type Mismatch caused by context parameters, lambdas, and genericsKT-81584IAE "Collection contains more than one matching element" in FirElementSerializer on contextual property with same name as primary value class propertyKT-77237JvmExposeBoxed breaks compilation with a secondary constructor with value classKT-81262False positive: Access declaration type exposure: during access to public function class from internal inline declarationKT-80112Kotlin Debugger: “Cannot find local variable” on evaluating default lambda inside inline functionKT-76806K2: AIOOBE in FirEqualityCompatibilityCheckerKT-81693Introduce lightweight versions of KonanConfig and PhaseContextKT-72446K/N: inline function's default values aren't lowered with cachesKT-81521Anonymous function in context parameters breaks parserKT-80853Class reference in context parameters breaks parserKT-81441Missing type checks when class has deeply generic supertypeKT-79116Wrong parameter arguments mapping (compiler skips empty arguments)KT-81422False negative in full-form name-based destructuring: annotations before val/var not rejectedKT-80652K2: USELESS_IS_CHECK is not detected inwhenKT-80049MangleERROR_TYPEs in diagnostics reported to userKT-73786Evaluator: cannot evaluate inline methods with reified parameterKT-75828Store backing field/delegate annotations and extension receiver annotations in metadataKT-74572Context parameters: contracts don't work with context parametersKT-42824FIR: false INAPPLICABLE_CANDIDATE when using in variance on a Java classCompose compiler
b/481953005,b/481769383Cache stability inference results during sessionb/481735904Fix Compose codegen crash in inline functionb/479646393Add groups to inline functions with two or more inline parametersb/458234821Disable Compose K1 tests on CIb/456948687Force resolution of declarations when looking up SAM functions in FIRb/445426829Add a diagnostic forkeycall with no argumentsIR. Actualizer
KT-82418KMP Separate Compilation: NPE caused by actualization of NsCalendar.getEraKT-82313ACTUAL_ANNOTATION_CONFLICTING_DEFAULT_ARGUMENT_VALUE checks throwconflicting values in expected and actual annotationsIR. Inlining
Fixes
KT-82017[Inliner] Inline function overrides abstract method with default valueKT-80814[IR Inliner] Space: jsBrowserProductionWebpack task failed with HookWebpackErrorKT-83280SplitLibrarySpecialCompatibilityChecksTestinto pure JS and pure Wasm testsKT-81766K/N: Recursive inline expect/actual causes StackOverflowErrorKT-80953[Inliner] Eliminate excessive IMPLICIT_CAST after IR Inliner on 2nd stage.KT-79899[IR Inliner] Split single-module tests havinginline funinto filesKT-83148KLIB inliner: Make both "inliner" language features to require Api Version = 2.3KT-80791classFunctionsAndFieldsWithCrossModuleInliner fails per-file with cross-module inlinerKT-80696Can not get instance of singleton 'Obj': No class found for symbolKT-82065IR inliner: Inline function's default value argument may get wrong offsets in a temporary variableKT-81753Review diagnosticReporters usage in pre-serialization loweringsKT-80793TestfriendDependencyWithCrossModuleInlinerfails per-file with cross-module inlinerKT-80698[IC][WASM] Mismatched file statsKT-80697[IC][JS per file] Mismatched rebuilt modulesKT-80660[Inliner] Bodyless functions should not be inlined at 1st compilation stageKT-79064Try to get rid ofTypeOfPostProcessorIR. Interpreter
KT-82161Enable Enum.name and KCallable.name to constant evaluationKT-80646Enable unsigned conversion functions when bootstrapped compiler is availableIR. Tree
KT-82765Kotlin/Native: Internal compiler error when building DFGKT-82829IR deserializer: Don't deserialize any cinterop fake overrides from KlibsKT-83236PeopleInSpace_mpp compilation error: The symbol table has been sealedKT-81154[IrValidator] Fine-tune IrVisibilityChecker on 2nd stageKT-80243Support Name Based Destructuring in loop with withIndex()KT-79436KLIB stdlib symbols loading: Drop all functions from SymbolFinder except for loading the whole collection of (potentially unbound) symbols by nameKT-79435KLIB stdlib symbols loading: Load symbols and and filter/map them lazily in BuiltinSymbolsBase hierarchy when accessed by IRKT-69082Migrate maps of IR elements to IR attributesKT-67457Introduce a way to simplify IR lowering phase creationJVM. Reflection
New Features
KT-22265Support for inherited annotationsPerformance Improvements
KT-84600Performance regression around Kotlin properties JVM reflection during instantiationFixes
KT-83608Kotlin-reflect: "Unknown origin of public abstract operator fun invoke(p1: P1, p2: P2): R"KT-57357Reflection: "KotlinReflectionInternalError" when usingcallByon constructor that has inline class parameter with nullable valueKT-83361"KotlinReflectionInternalError: Type parameter not found: 0" on super types with Kotlin 2.3.0KT-42199"KotlinReflectionInternalError: Unknown origin of public abstract operator fun invoke" on function reference to FunctionN.invokeKT-81024Reflection: New KType implementation fails on arguments comparison for a Nothing type parameterKT-83067Reflection: IAE "argument type mismatch" on callBy with vararg of generic type parameter with primitive upper boundKT-82699Reflection: incorrect behavior of KFunction.isExternal for Java native methodsKT-82350Reflection: incorrect behavior of KType.javaType on a type obtained from KType.withNullabilityKT-29203KType.javaType always returns void class for local delegated propertyKT-81899Reflection: incorrect javaType for local delegated property setter return typeKT-82093Reflection: IAE from defaultType for inner class of generic classKT-77312KotlinReflectionInternalError: "Container of deserialized member is not resolved" on computing type parameter captured in a local delegated propertyKT-82316Reflection: type parameters of top-level declarations behave incorrectlyKT-81987Reflection: error when calling function in inline class with inherited default valueKT-81870Reflection: Error when calling function with default parameters and extension receiverKT-81880Reflection: Error when calling function with default & context parametersKT-81907Reflection: incorrect result when calling function with default values and context parametersKT-81859Reflection: do not use descriptors in ValueClassAwareCallerKT-81854Reflection: incorrect type for instance receiver of inner class constructorKT-81855Reflection: IAE "object is not an instance of declaring class" on function with context and extension receiver of inline classKT-81843Reflection: NPE on accessing property accessor returnType for Java fieldKT-81588Reflection: KotlinReflectionInternalError "Inconsistent number of parameters" on calling contextual declaration with value class type in the signatureKT-81111Reflection: suspend function types are loaded incorrectly by the new implementationKT-81206Reflection: non-substituted Function type in suspend function supertypesKT-81804Reflection: remove support for multi-field value classesKT-81664Reflection: IAE "argument type mismatch" on calling member extension with value class in the signatureJavaScript
New Features
KT-83454K/JS: Support ES6 classes in js() callsKT-83455K/JS: Support ES6 default function arguments in js() callsKT-83453K/JS: Support ES6 concise methods in js() callsKT-83457K/JS: Support ES6 spread operators in js() callsKT-83456K/JS: Support ES6 rest function parameters in js() callsKT-54504K/JS: Support ECMAScript tagged string templatesKT-82327KJS: Export parameter names of function types if present in .d.ts filesKT-82371KJS: Generate more concrete TypeScript for members of an uninhabited enumPerformance Improvements
KT-16379KotlinJs - ArrayList get is now slowFixes
KT-64951Kotlin-Multiplatform does not allow JSExport of expectKT-83528K/JS: Array holes in array literals are ignored in the new js() parserKT-84134KJS/CMP: "IrLinkageError: Function 'get' can not be called: No function found for symbol"KT-65802How to implement Interfaces in Javascript/Typescript?KT-83830Relocate org.antlr.v4 to an internal packageKT-83572KJS/Wasm: Cannot access@JsModule-declared class from non-modular projectKT-83930Kotlin/JS: JsStatic on property of interface companion generates incorrect d.tsKT-70986Add Swc into the compilation pipeline of Kotlin/JSKT-78742Investigate the usage of the ANTLR-generated parser for thejsfunctionKT-60554KJS: rethink JS_*_NAME_CLASH diagnosticsKT-82552KJS: "Non-abstract class does not implement inherited abstract member from class" errors in generated .d.tsKT-82652KJS: Exported abstract inner classes can be constructed from TypeScriptKT-82542KJS: Inner class can be constructed from TypeScript without passing an outer instanceKT-82499KJS: Omit parameters in private constructors in .d.ts filesKT-41082KJS: 'Reflection is not supported on JavaScript target, so you won't be able to read this annotation in runtime' warning is inconvenient and misleadingKT-82279KJS: DCE removes external members overrides without reasonKT-52800KJS / IR: sealed interface with nested data classes not accessibleKT-67460Use new lowering phase creation API in JS backendKT-82667Kotlin/JS: ESM TypeScript definitions for exported nested Enums do not compileKT-82553KJS: Incorrect .d.ts generated for generic inner classesKT-82263Implement exporting top-level properties in Analysis API-based TypeScript ExportKT-82362KJS: Incorrect types generated in .d.ts for JsName-annotated enum entryKT-82262Implement exporting top-level functions in Analysis API-based TypeScript ExportKT-82144K/JS: 'meta' identifier usage in js() inline calls prevents expression from parsingKT-82149K/JS:newcalls without arguments produce exceptions in js() inline callsKT-81730Optimize suspend functions compilations via JS generatorsKT-79243[JS] Drop K1-specific tests, testrunners and test directivesKlibs
New Features
KT-83101Implement experimental KLib ABI dump parserFixes
KT-82586Export in previous version (JS, Wasm): adjust the checker for incompatible Kotlin stdlib/compiler pairsKT-84273[Klib] Added IrOffsetsChecker broke backward klib compatibilityKT-80910[Klib] Ensure serialized source coordinates are correctKT-81955[JS] Support testing of forward compatibility with export in previous versionKT-81957[JS] Create a common Gradle test taskKT-82736False positiveIR_PRIVATE_CALLABLE_REFERENCED_BY_NON_PRIVATE_INLINE_FUNCTION_ERRORon referenece to local declarationKT-82758[PL] Change the behavior of getting name of removed propertyKT-81470Simplify inline function deserialization after the bootstrap updateKT-81466Enable KlibAnnotationsInMetadata by default in LV 2.5KT-82208K/Wasm: allow using newer stdlib with older compilerKT-83328kotlin-wasm-benchmarks: Compilation errors due to missing KLIB dependenciesKT-83071Failure on Native NightlyKT-78365[PL] Change the behavior of getting name of removed functionKT-81977Klib compatibility tests: Implement sanity checksKT-81410Klib metadata: migrate to using the common annotations instead of klib-specific extensions in kotlinx-metadata-klibKT-82577Don't use KLIB resolver in the KLIB toolKT-82213IR linker doesn't complain when a private value class constructor is used from another moduleKT-81003KLIBs: Eliminate excessive implicit casts in common prefix on the 1st stageKT-81670K/N: Many Section still use none cacheable zip when Xklib-zip-file-accessor-cache-limit flag setKT-81954[JS] All forward compatibility tests failKT-81709[KLIB Reproducibility] KLIB zip file generation is non-deterministic due to unsorted file system traversalKT-81474[Tests][Klibs] Migrate Klib evolution tests to PL tests engineLanguage Design
KT-83009Exposing of non-exportable API from interfacesKT-73502Context parameters: it is not possible to declare local function with a contextLibraries
New Features
KT-81997Method to create a detached copy of a Map entryKT-79093Expose FirResolvedStatus.hasMustUseReturnValue in kotlin-metadataPerformance Improvements
KT-75801Optimize Array to list conversion using array copy instead of a loopKT-82038K/N: iterating over Array.asList is slower compared to ArrayListFixes
KT-78115Investigate the current situation with 22kotlin.contextstandard library overloadsKT-82363AddassertIsto the list of ignorable functionsKT-80666K/N and K/Wasm: Regex: unassigned category is excluded from other charsKT-80665K/N and K/Wasm: Regex: unicode category Symbol matches some punctuation marksKT-78089K/N: Regex: Quantified groups matching is causing a stack overflowKT-82783HashMap (K/N, Wasm), MapBuilder (all targets) duplicate keysKT-52400Deprecate@BuilderInferenceKT-80786Annotate kotlin-stdlib-jdk7/8 with@IgnorableReturnValueKT-83181Remove@IgnorableReturnValuefrom contract DSL functionsKT-82033Array<Array>.flatten fails with obscure error when total length exceeds List's size limitKT-83290Remove unnecessary ExperimentalTime annotation from Uuid functionsKT-83026Specify compareTo behavior for BooleanKT-82868Restore accidentally deleted JS-specific note in ArrayList documentationKT-81563Document kotlin.collections.HashMap and HashSetKT-81562Document kotlin.collections.ArrayListKT-60535Mark SubclassOptInRequired and RequiresOptIn with MustBeDocumentedKT-64649Add explanation to "A compileOnly dependency is used in the Kotlin/Native target" warning messageNative
KT-83542Switch the default GC back to PMCS in 2.3.20-RCKT-82387Kotlin <-> Xcode compatibility issueKT-75806KN Compiler with debug build can not produce executable with debug infoKT-81828Update exception messages regarding disabling native cacheKT-81495Consider making Kotlin/Native distribution compiler cache reproducibleKT-81501Make Kotlin/Native distribution runtime .bc and fingerprint reproducibleKT-80790'Argument list too long' error when using dynamic_cachesKT-48566ExceptionInInitializerError when configuring Gradle project with kotlin-multiplatform plugin on a host unsupported by Kotlin/NativeNative. Build Infrastructure
KT-82886KonanTarget's clinit causes deadlockKT-81345Temporary turned off Swift Export execution testsKT-80869Extract per-module test generators for Native testsKT-82028Kotlin/Native: move runtime building flags to runtime building codeKT-81500Make Kotlin/Native distribution shared libraries reproducibleKT-72011Kotlin/Native: consider building platform libraries with bootstrap compilerKT-81666Kotlin/Native: build stdlib with the bootstrap compilerNative. C and ObjC Import
KT-79741Native: implement type checking against Objective-C protocols withoutprotocolGetterKT-83039Native: mark header-defined functions and globals unavailable with-Xccall-mode directKT-82200Native: implement type checking against Objective-C protocols withobjc_runtime_namewithoutprotocolGetterKT-82669Kotlin/Native: cinterop tests failure with no class for metaclassKT-79742Native: import C global variables without C wrappersKT-81937Native: switch cinterop to-Xccall-mode bothby default for custom cinterop klibsKT-81548Native: compiler doesn't sanitize CCall.Direct symbol names in C stubsKT-81538Native: InteropBridgesNameInventor doesn't handle legitimate '$' characters in function namesKT-81017Native: compiler can't call CCall.Direct with '$' in the symbol nameNative. ObjC Export
KT-82160K/N: bridge for fake override is not built but requestedKT-83736Objective-C export withobjcExportBlockExplicitParameterNamesgenerates invalid block signature when lambda parameter is namedidKT-83014Native: experimental support for generating an NS_ENUM in addition to an Objective-C class for Kotlin classesKT-76637ObjCExport: K1 + K2 integration testNative. Runtime
KT-82077Kotlin/Native: in runtime make main module depend on mm moduleNative. Runtime. Memory
KT-82635Enable CMS GC by default in 2.3.20-Beta1KT-83470Potential race condition in TryRequestThreadsSuspension due to initialization orderKT-83549Provide an experimental Platform property which returns information about object allocation modeKT-83535Typo in out-of-memory error messageKT-81152Kotlin/Native: deprecate isMemoryLeakCheckerActiveKT-81156Kotlin/Native: deprecate forceCheckedShutdownNative. Swift Export
New Features
KT-82908Swift Export: bridges for FT should be recursiveFixes
KT-82054Swift Export:private setis ignored by swift exportKT-83499Swift Export: trampoulines w/ varargs results in a broken swift codeKT-83655Typealias to a closure receiving a closure results in broken swift codeKT-82053Swift Export: Returning generic on top level function produces uncompilable codeKT-80971Swift Export: Support exception throwingKT-83141Swift Export: suspendable covariant functional typeKT-82907Swift Export: attributes are not printed for parameters of closuresKT-80970Swift Export: Support cancellationKT-82726Swift Export: filters out wrong module for coroutinesKT-81591Custom type translation rules in Swift exportKT-81270K/N - Build fails when exposing suspend functionsTools. BCV
KT-80938Binary compatibility validation: can't exclude container types of Repeatable annotations byfilters.excluded.byNamesKT-83484Create fat-jar artifact for abi-tools [ABI Validation]KT-80747Refactor API of ABI tools [ABI Tools]Tools. Build Tools API
New Features
KT-80681BTA: introduce a special argument for passing compiler pluginsKT-80338Kotlin CRI generationKT-78198BTA: implement basic metrics collectionKT-79975BTA: add ability to cancel build operationsKT-81790[BTA] Make build operations and configuration immutable after executeKT-82702BTA: Allow collecting compiler lookups in non-incremental modeKT-81847Add CRI <-> BTA integrationKT-81845Add CRI <-> Maven integrationFixes
KT-84577BTA: API 2.3.20 incompatible with compiler 2.3.10KT-82682BTA: reading non-nullable arguments may return null or throw NPEKT-81729BTA: loading from a classloader without implementation fails with CNFE instead of error with explanationKT-83971BTA: OperationCancelledException cannot be thrown properly from isolated classloaderKT-82167Add BuildTimeMetric for the CRI data generationKT-81846Add FUS for CRI usage in Gradle / MavenKT-82399[BTA] JvmClasspathSnapshottingOperationImpl doesn't use Option defaultsKT-82039BuildEvent compilation error missing with KGP 2.3.0-Beta1KT-81887Implement the CRI lookup data generationKT-81886Implement the CRI data serializationKT-81780Add Gradle <-> CRI integration testsKT-81645BTA prints unreadable version in "option available only since" error (shows KotlinReleaseVersion@hashinstead of 2.x.y)Tools. CLI
KT-83044Report redundant CLI arguments when they have no effectKT-83202Report all errors during parsing CLI arguments instead of a single oneKT-73320Migrate the main JS CLI pipeline to the phased structureKT-81898Introduce a CLI option to disable source file sortingKT-73606Provide a unified interface for managing the reporting of compiler warningsKT-48419Using a@RequiresOptInAPI that does not exist should have an option to not output a warningKT-81861Introduce a mechanism that allows suppressing CLI diagnosticsKT-82321KMP Separate Compilation: Common fragments are missing forward declaration symbol providersKT-81551Introduce an experimental CLI option for enabling local type aliasesKT-74196Remove patched copy of com.intellij.util.lang.JavaVersion from the Kotlin repoTools. CLI. Native
KT-64509Refactor Kotlin/Native compiler setup: run FE without KonanConfigTools. Compiler Plugin API
KT-83823DeprecatePreprocessedVirtualFileFactoryExtensionKT-82809[FIR][IC] New containingFileName parameter API is not actually compatible with ICKT-46709IR plugin lookups don't work as expected for expect class with actual typealiasKT-82518Disable automatic body generation of the plugin-generated callablesKT-82159[FIR] Automatically add expressions to properties or functionsKT-58886K2: compiler plugin generated top level declarations cause AssertionError on K/JS and K/NativeTools. Compiler Plugins
New Features
KT-71893Support@Builderlombok annotation on methodsKT-28594Add a 'jpa' pre-defined flavor to the allOpen compiler plugin.KT-81604Lombok Kotlin compiler plugin and -Werror: Unable to ignore warning for the plugin applianceFixes
KT-83119Lombok. canEqual is not available from kotlin for a class with@DataannotationKT-83334Lombok. Builder function is unavailable for a generic classKT-83063Lombok: Setter/getter is not available with a protected access levelKT-83217Lombok. With method is available for the static fieldKT-83120Lombok. A constructor is available for a class with an existing constructor and@Data/@ValueannotationKT-83256Lombok. Setter is available for non-final fields if@Valueand@Data/@Setterare used togetherKT-83251Lombok. Constructor from@Valueincludes fields that are initialized in declarationKT-83252Lombok. Class marked with@Valueisn't finalKT-83085Lombok: getter/setter is available for a static field if class is annotatedKT-83078Lombok: getter and setter are not available for a static Java fieldKT-82341Migrate official compiler plugins to IC-safe reference... APITools. Compiler plugins. Compose
KT-84218[2.3.20-Beta1] "IllegalStateException: no implementation for FUN MISSING_DECLARATION" during bitcode loweringKT-84055Reference to lambda in lambda in function 'TextField' can not be evaluatedTools. Compiler plugins. Serialization
KT-82351Migrate kotlinx.serialization to IC-safe reference... APIKT-76949Serialization: "IllegalStateException: Serializer for element of type kotlin.Any has not been found" on custom serializer forMap<String, Any?>KT-73107Serialization: "IllegalStateException: Serializer for element of type kotlin.Any? has not been found" with star projectionTools. Gradle
New Features
KT-79389Add allopen plugin + JPA preset to kotlin.plugin.jpaKT-78200Gradle: enable JVM compilation through BTA by defaultKT-81844Add CRI <-> Gradle integrationPerformance Improvements
KT-84152Memory Leak and OOM Errors in Kotlin Gradle Plugin 2.3.20-Beta2 within-processexecution modeFixes
KT-80186Remove usage of deprecated Gradle API Project.container(...)KT-78754KGP: Remove usages of isVisible/setVisibleKT-80356Compatibility with Gradle 9.2.0 releaseKT-78763Compatibility with Gradle 9.1.0 releaseKT-83316[BTA] Build Reports missing information when JVM compilation uses Build Tools APIKT-82885Run tests against Gradle 9.3.0KT-83125Deprecate out-of-process compilation modeKT-82323Deprecate LanguageSettings.enableLanguageFeature DSLKT-83323Run integration tests against Gradle 9.2KT-82884Compile against Gradle API 9.3.0KT-78104Deprecate CleanableStore infrastructureKT-80096Strange "Inconsistent JVM Target Compatibility" warningKT-82715Declaring dependencies using multi-string notation has been deprecatedKT-83161CRI: it is not clear that CRI generation requires BTA being enabledKT-82717Specifying 'org.gradle.java.installations.auto-detect' as a project property on the command line has been deprecatedKT-81830Create autogenerated kotlin version constants to be used with disableNativeCache DSLKT-83322Compile against Gradle 9.2 APIKT-81831Verify Problems API implementation with Gradle guidelinesKT-80120Support colored value for --console command in Gradle 9.1KT-81400ToolingDiagnosticFactory: check if documentationLink set multiple timesKT-83070The KGP api reference is missing a descriptionKT-82459Improve iOS simulator boot implementationKT-80008Track cross compilation status from project dependenciesKT-78764Compile against Gradle 9.1 APITools. Gradle. BCV
KT-80674Rename tasks to avoid usinglegacyword [ABI Validation]KT-80614Add dependency on abi check from gradle's check task [ABI Validation]KT-80827Delete DSL for working with dump variants [ABI Validation]KT-80823Stabilize DSL for filtering [ABI Validation]Tools. Gradle. Cocoapods
KT-80641EXECUTABLE_DEBUG_DYLIB_PATH problemKT-80644Cocoapod plugin builds a synthetic project for "generic/platform=iOS Simulator"Tools. Gradle. JS
KT-84772Bundled yarn.lock for kotlinWasmToolingSetup does not include@swc/helpers@0.5.17KT-82946Js, Wasm: Upgrade NPM dependenciesTools. Gradle. Multiplatform
New Features
KT-77258Query status of cross-compilation or compilation taskKT-81849Replace kotlin-test-common and kotlin-test-annotations-common with just kotlin-testFixes
KT-83917compileCommonMainKotlinMetadata fails in CMP core repository with Kotlin 2.3.20-Beta1KT-82090Kotlin JVM + Android Shared Source set fails Import with the Project Isolation enabledKT-81973NPE with Cannot invoke "java.util.List.get(int)" because "path" is null in KMP + Android projectKT-79257Consider deprecating and removing kotlin.kmp.isolated-projects.supportKT-81944Legacy KMP Android uses wrong configurations to infer common dependenciesKT-83687Revert deprecation of 'androidTarget' for AGP lower than 9KT-81536"Couldn't resolve dependency in 'commonMain' for all target platforms" in 2.2.20-Beta2KT-81724IntelliJ successfully resolves imports that are not actually available in the given moduleKT-79073compileTest* tasks pass separateCompilation parameters but don't behave accordinglyKT-71130Enable Isolated Projects support by default for KMPTools. Gradle. Native
KT-84759iosX64 should not be marked as deprecated in Kotlin Gradle DSLKT-83598KotlinNativeDownloadTask build caching is unsafeKT-80715Deprecatekotlin.native.cacheKindand introduce DSL insteadKT-83353DisableNativeCache breaks up-to-date checks for non-cacheable K/N targetsKT-81443ConfigurationCacheErroron Linux arm64 due to disabled iOS targetsKT-82970Warning about disabled K/N caches for non-cacheable targets is printed twiceKT-82786Warning about disabled K/N caches is displayed twiceTools. Gradle. Swift Export
KT-82727Swift Export: generated kotlin bridges don't see neighboring modulesTools. Gradle. Wasm
KT-82525K/Wasm: kotlinToolingSetup does not depend on package manager installationTools. Incremental Compile
KT-80483Incorporate IC lookups intoreference...methods ofIrPluginContextTools. JPS
KT-76927Switching from VAL to VAR does not trigger recompilation of usage in Kotlin-uses-KotlinKT-79362JPS/NoArg: Failed to build project with 'java.lang.NoClassDefFoundError: org/jetbrains/kotlin/com/intellij/psi/PsiElement'Tools. Kapt
KT-81691K2: KAPT: "ClassCastException: IrErrorTypeImpl cannot be cast to class IrSimpleType"KT-82338K2 KAPT: ISE "Cannot evaluate IR expression in annotation" on unresolved enum usageTools. Maven
KT-83565Maven: auto‑detect src/main|test/kotlinKT-79304Maven: Automatically add kotlin-stdlib dependencyKT-83111Add JavaVersion argument resolver for kotlin-maven-plugin-testKT-83112Add MavenVersion argument resolver for kotlin-maven-plugin-testTools. REPL
KT-82575[K2 REPL] Redesign frontend resolution for REPL snippetsKT-82741[K2 Repl] OOM inFirJavaElementFinderKt.collectAllDependentSourceSessionsTowhen rerunning the same cell multiple timesTools. Scripts
KT-81679Script explain: while loop explanation may lead to the hanging codeKT-81677Script explain: Contents of the if/when branches are not explainedKT-67063LauncherReplTest flaky on WindowsTools. Statistics (FUS)
KT-82877Add performance measurement for KLIB sizeKT-79576Included build subprojects produce FUS files with unknown_id when configuration cache is enabledv2.3.10: Kotlin 2.3.10Changelog
Compiler
KT-83984Data races around kotlinx.serialization plugin protobuf extensions registrationKT-83317ClassCastException: with cast kotlin.UInt to java.lang.Number when defining constantKT-83031K2: unstable resolution of EnhancedNullability from type-use NotNull in presence of unused codeKT-81700flaky overload resolution behaviors (false-positive errors, different final candidates, compile-time failures)KT-83983Revert of KT-83081KT-83314JSpecify@NullMarkedchanges Java equals(Object) to equals(Any?) causing override conflict in Kotlin 2.3KT-82863@NoInferregression since 2.2.20KT-82841"kotlin.NoWhenBranchMatchedException" inwhenwith!ischeck & non-sealed class in the middle of hierarchyJVM. Reflection
KT-83608Kotlin-reflect: "Unknown origin of public abstract operator fun invoke(p1: P1, p2: P2): R"KT-83361"KotlinReflectionInternalError: Type parameter not found: 0" on super types with Kotlin 2.3.0KT-42199"KotlinReflectionInternalError: Unknown origin of public abstract operator fun invoke" on function reference to FunctionN.invokeKT-81024Reflection: New KType implementation fails on arguments comparison for a Nothing type parameterTools. Compiler Plugins
KT-83266"Unsupported class file major version 69" for "produceReleaseComposeMapping" task with Kotlin 2.3KT-83099Compose compiler does not generate stack trace mappings for project filesTools. Gradle
KT-83070The KGP api reference is missing a descriptionKT-82459Improve iOS simulator boot implementationTools. Gradle. JS
KT-82946Js, Wasm: Upgrade NPM dependenciesTools. Gradle. Multiplatform
KT-83687Revert deprecation of 'androidTarget' for AGP lower than 9v2.3.0: Kotlin 2.3.0Changelog
Analysis API
KT-80082K2. False positive "Cannot resolve method" for self-bounded generic with wildcard return type in Java interopKT-80303Move:native:analysis-api-klib-readerto:libraries:toolsAnalysis API. Code Compilation
KT-70860K2 IDE / Kotlin Debugger: CCE “java.lang.String cannot be cast to java.lang.Void” on evaluating not-null variable on the line with assigning null to that varKT-78554K2 IDE / Kotlin Debugger: ISE “No override for FUN IR_EXTERNAL_DECLARATION_STUB” on calling toString() for local class instance during evaluationKT-73201K2 IDE: Error while evaluating expressions with local classesAnalysis API. FIR
KT-81378Expected expression 'FirFunctionCallImpl' to be resolved caused bysuspend {}KT-80473Add events for tracking LL activitiesKT-46375Analysis API: Support cross-file class redeclaration checks using indicesKT-80471Analysis API: Deduplicate equivalent call candidates inresolveToCallCandidatesKT-79653[Analysis API] ContextCollector: BODY context of enum classes doesn't contain enum entriesKT-75858K2 AA: False positive 'property must be initialized' on incremental analysis with 'field' usage and semicolon in setterKT-80231AnnotationArgumentsStateKeepers doesn't restore the initial annotation in some casesKT-80233Pull mutation out of AnnotationArgumentsStateKeepersKT-71466LLFirBuiltinsSessionFactoryusescreateCompositeSymbolProviderKT-76432JavaClassUseSiteMemberScope: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImplAnalysis API. Infrastructure
KT-80717Support IntelliJ Bazel build in the Kotlin Coop development modeAnalysis API. Light Classes
KT-80656Duplicate no-args constructor in PSIKT-60490Symbol Light Classes: Property accessors from a delegated interface don't present in the delegating classKT-79689SymbolLightClassForClassLike.toString() causes PSI tree loadingKT-80690Private interface functions are not present in light classesKT-80256K2: Certain actions in JPA code causes infinite PIEAE: "Element class CompositeElement of type REFERENCE_EXPRESSION (class KtNameReferenceExpressionElementType)"KT-79012Add a high-level overview of light classesAnalysis API. Providers and Caches
Fixes
KT-81476Analysis API:AlreadyDisposedExceptionfrom low-memory cache cleanupKT-80911Analysis API: Execute session invalidation in a non-cancelable sectionKT-81242Analysis API: Add UUID/lifetime properties to LL FIR session structure loggingKT-80622Analysis API: Visualise LL FIR session structure & weightKT-80904Analysis API: "Invalid dangling file module" exception during session invalidationKT-78882K2 AA: Calling containingSymbol on getProgressionLastElement causes exceptionKT-58325Analysis API: CombineLLKotlinStubBasedLibrarySymbolProviders in session dependencies (optimization)KT-77825Analysis API:CheckersComponentconsumes a lot of memory while being unused in LL FIR sessionsKT-76526Incorrect built-in module is provided for non-JVM sources in StandaloneKT-62549Analysis API: Cache callables in combined Kotlin symbol providersKT-70721LL FIR: investigate possibility of movingLLFirFirClassByPsiClassProvider . getClassByPsiClass (PsiClass)to symbol providersKT-72998Analysis API: IntroducegetClassLikeSymbolByPsito LL FIR symbol providersAnalysis API. Standalone
KT-81108AA: java.lang.ClassCastException: class org.jetbrains.kotlin.fir.FirBinaryDependenciesModuleData cannot be cast to class org.jetbrains.kotlin.analysis.low.level.api.fir.projectStructure.LLFirModuleDataKT-80573Potential performance issue on class ID computationKT-80559Try to optimize KotlinStandaloneDeclarationProviderFactory startup for testsKT-71706Analysis API Standalone:StandaloneProjectFactory.createSearchScopeByLibraryRootscreates inefficient file-based search scopesAnalysis API. Stubs and Decompilation
Performance Improvements
KT-77097SupportReplaceWithdeprecation annotation argument via stubsFixes
KT-80350Drop K1 decompilerKT-77082StackOverflowError in CreateFreshTypeVariableSubstitutorStage.shouldBeFlexibleKT-80798Improve stubs tests coverageKT-75318Read context parameter fields from metadata in CallableClsStubBuilderKT-77874AA disagrees with the compiler on descriptions of context parameters from binaries in messages for context argument ambiguity errorsKT-80276Implement native coping for stubsKT-79780Decompiled MultifileClass has Facade kindKT-79398isClsStubCompiledToJvmDefaultImplementation flag is inconsistent for compiled and decompiled stubsKT-79798Prettify stub usages in LL stub-based deserializerKT-78949AbstractLLStubBasedResolutionTest: tests against real stub-based filesKT-80251Inconsistent decompiled and compiled stub for properties with an initializer and a delegateKT-74547Implement decompiler for K2KT-79555Move KotlinFileStubImpl serialization/deserialization to the Analysis APIKT-79487"null DefinitelyNotNullType for 'T'" from decompilerKT-60764Stub Builder: fix differences between K1 and K2 stub building on decompiled filesKT-79484An empty enum class with a member decompiles with a synthetic errorKT-79730Decompiled files have an extraKtsuffixKT-79483data modifier is not present on object modifierKT-75398Local classes from scripts have ClassId in stubsKT-79412Context parameters with type annotations cause inconsistency errors while building stubsAnalysis API. Surface
New Features
KT-80084Provide endpoints for Analysis API to understand when the context sensitive resolution is usedKT-64340Analysis API: no way to get a type of vararg parameterKT-68387AA: provide context for type approximationsPerformance Improvements
KT-80713Optimize KaDeclarationSymbol#visibility for class-like symbolsKT-79097KaFirNamedFunctionSymbol#isSuspend shouldn't trigger resolutionKT-79095isOverride shouldn't trigger resolution if not compiler plugins presentFixes
KT-80234Incorrect value ofisActualfor the implicitlyactualconstructor of annotation classKT-81132Use KaSession instead of a particular KaSessionComponent for context parameter bridgesKT-81129K2: KaSymbolInformationProvider#importableFqName: should return null for dynamic declarationsKT-81128K2: KaSymbolInformationProvider#importableFqName: should return null for error destructuring declarationsKT-81127K2: KaSymbolInformationProvider#importableFqName: should return null for anonymous functionsKT-81126K2: KaSymbolInformationProvider#importableFqName: should return null for enum entry initializer constructorsKT-81125K2: KaSymbolInformationProvider#importableFqName: should return null for property accessorsKT-81124K2: KaSymbolInformationProvider#importableFqName: type alias constructor should have a reference to the type alias and not to the underlying classKT-70127Analysis API: 'KaFirReceiverParameterSymbol' does not implement 'KaFirSymbol'; leads to exception fromimportableFqNameKT-81123Reimplement KaFirSymbolInformationProvider#importableFqNameKT-81122Drop KaImportOptimizerKT-78093Add bridges for context parametersKT-79772Migrate from 'validityAsserted' to 'withValidityAssertion'KT-79328K2 AA, isUsedAsExpression: Unhandled Non-KtExpression parent of KtExpression: class org.jetbrains.kotlin.psi.KtImportDirectiveKT-80366IllegalStateException from KaFirStopWorldCacheCleanerKT-80274Merge AbstractMultiModuleSymbolByPsiTest to AbstractSymbolByPsiTestKT-80352KaBaseResolutionScope.contains(PsiElement) always returns false for Android light classes (e.g. synthetic R.java classes)KT-80178Incorrect modality for an abstract interface function with a redundantopenmodifierKT-79129[Analysis API]KaFe10TypeCreator.buildClassTypecannot build builtin types by class idsKT-79143AA:argumentMappingcontains an expression that is not an argumentKT-59857KaExpressionTypeProvider#returnType shouldn't throw an exception for class like declarationsKT-79667Enable resolve on java record components in standalone modeKT-73050KaFirSymbolRelationProvider#expectsForActual: suspicius logic for KaReceiverParameterSymbolKT-78904KaBaseWriteActionStartedChecker throws when no additional WA was doneKT-79281Add KDoc toKaTypePointer#restoreKT-78597KaUseSiteVisibilityChecker returns false for internal functions exposed via implicit receiverKT-71705FIR api impl: Postfix increment expression'sexpressionTypeis Unit when incrementing array elementKT-75057Analysis API: Reference to object through typealias in invoke operator call leads to original typeBackend. Native. Debug
KT-79848Flaky debugger tests in opt.debug/cache.*/GC.CMS/GC.sch.ad/alloc.custom configurationBackend. Wasm
New Features
KT-59032Support instantiation of annotation classes on WASMFixes
KT-76204K/Wasm: support generating a wasm module per kotlin module/klibKT-79357K/Wasm: store data for string literals in utf8 for Latin1KT-82075K/Wasm: kotlin.wasm.internal.getSimpleName crashes on iOS Safari older than 26KT-79244[Wasm] Drop K1-specific tests, testrunners and test directivesKT-69621K/Wasm: Consider enabling support for KClass.qualifiedName by defaultKT-80397K/Wasm: turn on by default using a new version of the exception handling proposal for wasm-wasi targetKT-81372K/Wasm: JsException: Exception was thrown while running JavaScript code on Safari 18.2/18.3KT-80018K/Wasm: exceptions don't work properly in JavaScriptCore (vm inside Safari, WebKit)KT-66072K/Wasm: improve how exceptions work in JS interopKT-80106devServer in Kotlin/Wasm overwrites defaults, causing missing static pathsKT-80210Wasm: "Unexpected non-external class: kotlin.Nothing" caused by JsExport with JsPromiseKT-80555WASM IC: Can't link symbol on kotlinx.coroutines on fresh masterKT-80415WasmJs Number Elvis Operator CrashKT-76509WasmJS: ReferenceError: Temporal is not defined caused by "Redundant reference to unused external results"KT-79317[Wasm] Do not throw CCE for ExcludedFromCodegen declarationsKT-78036K/Wasm: generate a message with "expected" and "actual" types in case of CCECompiler
New Features
KT-80461K2: false positive NO_ELSE_IN_WHEN for complex sealed hierarchyKT-77676K/N: enable typechecks and the casts optimization pass in debug mode by defaultKT-79185Support local type aliasesKT-80837Warn about extension function with a context shadowed by memberKT-80768Warning on overloading by a superset of context parameters in class contextKT-80031Check spotbugs's@CheckReturnValuein Kotlin's unused return value checkerKT-79380Native: add performance measurement for the rest of backend phasesKT-79381Native: add performance measurement of LLVM phasesKT-80222Implement the prohibition of always-falseischecks for definitely incompatible typesKT-79295Parse and build raw FIR from new short and full forms of positional destructuring with square bracketsKT-74810Support typealiased/mapped Java types in unused return value checkerKT-71244Incorporate existing@CheckReturnValueannotation(s) into Kotlin's unused return value checkerKT-79922Record 'MustUse/ExplicitlyIgnorable' state for overrides even in disabled RVC modeKT-79920Store 'Explicitly ignorable' state of function/property in the metadataKT-79690Implement a USELESS_ELVIS_LEFT_IS_NULL with elvis expressionKT-79296Implement/adapt diagnostics for new destructuringKT-79298Report errors on new destructuring syntax in K1Performance Improvements
KT-81617Native: casts optimizations pass explodes on deep nested loopsKT-80554Kotlin/Native: investigate performance hit from always-on llvm pass profilingKT-81340K/N: severe compilation time degradation after turning on casts optimization passKT-80370Add NO_INLINE attribute to some of runtime functionsKT-80167K/N: condense the nodes and edges in DevirtualizationAnalysis constraint graphKT-79535Revert incorrect SAM conversion enhancements brought to K2Fixes
KT-79979K2: ClassCastException when overriding extension property with delegationKT-82590ClassCastException when instantiating class with generics implemented by fun interface and lambdaKT-78881K2: False positive "Assigned value is never read" in composable functionKT-79276Dexing fails with "Cannot read field X because is null" with 2.2.0KT-79547"UnsupportedOperationException: Not supported" with inlining and value classesKT-79442"Multiple annotations of type kotlin.coroutines.jvm.internal.DebugMetadata": 2.2.0-Beta1 generates broken code with JVM default suspend methods in interfacesKT-80744Kotlin failure on lambda with type parameterKT-81618"Number of arguments should not be less than number of parameters" on JVM on Kotlin 2.3.0-Beta1KT-82869Green-to-Red change in 2.3 after prioritizing non-suspend-function-type overloadsKT-79611"IllegalStateException: couldn't find inline method": Exception during incremental compilationKT-78895Consider dropping isLocalInFunction and FirClassLikeDeclaration.isLocalKT-82040Native: ClassCastException: PointerInputChangeKT-81924K2: "Cannot infer type for this parameter", "Overload resolution ambiguity between candidates"KT-80864K2: MissingVal cannot be reassigneddiagnostic for Java final fields (crashes in runtime withIllegalAccessError)KT-71420Report error when reified type parameter is inferred to intersection typeKT-79451Rework approach to recursive types approximationKT-78413Kotlin Debugger: value classes as context parameters have incorrect names in Variables View during debuggingKT-82138Debugger: Cannot evaluate JvmInline value class parameterKT-82381ArrayIndexOutOfBoundsException while FirDiagnosticsCompilerResultsReporter tries to print code as part of a warning logKT-81068Corrupted Unicode paths passed or used in the compilerKT-79783KDoc parser: Links aren't rendered if the line has an indent of 4 or moreKT-80549Call of Java method with type parameter bounds: Expected FirResolvedTypeRef with ConeKotlinType but was FirJavaTypeRefKT-82132False-positive type mismatch with -language-version 2.2KT-81988K2: Any?.toString() causes NPE inside lambda with JavaKT-81652Native: ClassCastException: ApplicationForegroundStateListener.CompanionKT-76479Backend. JVM: Report errors on exposure of types in inline functionsKT-82022K/N: Unexpected "Annotation@JvmInlineis missing on actual declaration" warning with value classesKT-80250ISE: flow for PostponedLambdaExitNode not initialized - traversing nodes in wrong order?KT-76344Drop language version 1.9 for non-JVM platformsKT-76343Drop language version 1.8KT-80330K2: NPE at org.jetbrains.kotlin.fir.resolve.calls.FirCallResolver.createResolvedNamedReferenceKT-80400K2: AbstractMethodError on fun interface implementation inheriting from an interface compiled with -jvm-default=disableKT-9111Improve diagnostic for call with access to outer class from nested classKT-78280Implement the sourcelessKtDiagnosticsKT-74999K2: KotlinNothingValueException within Extension FunctionKT-81254"AssertionError: There should be at least one non-stub type to compute common supertype": Parser issue during generic type inferenceKT-53237NI: Frontend ignores generic bound when inferring typesKT-81186Only allow local type aliases in REPL/scripts until full stabilizationKT-80929IC Native: Undefined symbols on ktorKT-81657K2: put warning about "exposing package-private in internal" under experimental language featureKT-81241Konanc exit while lowering org.jetbrains.kotlin.ir.util.IrUtilsKt.remapTypeParametersKT-74819K2: False-positive overload resolution ambiguity for flatMap inside PCLAKT-81547Stabilize DFA-based exhaustivenessKT-79274Frontend implementation of name-based destructuringKT-79506Contract for getter and setter doesn't work if a property is called from another moduleKT-58988K2: Deprecate exposing package-private parameter of internal methodKT-80711IC Native: NPE during link on ktorKT-77727Move some of the extra checkers to the default listKT-76136Switch latest stable version in Kotlin project to 2.3KT-81257Native: "Unexpected boolean predicate" when generating 'static_cache'KT-81525Report REDUNDANT_SPREAD_OPERATOR on (*) instead of argument expressionKT-81522Fix Light TreeSPREAD_OPERATORdiagnostic positioningKT-77008K2: Incorrectly force casting to a wrong typeKT-78127K2: Too precise inference for if/when with expected type in assignmentKT-80208K2: ClassCastException: "class java.util.ArrayList cannot be cast to class java.lang.Void" type inference picks Void for generic functionKT-75797Native: find a way to handle generates C bridges in inline functionsKT-78819K2: False positive ABSTRACT_MEMBER_NOT_IMPLEMENTED in KJK hierarchyKT-80003Kotlin/Native: deprecate eager GlobalData initializationKT-79231Inconsistent InnerClass entry flags for abstract inner enumKT-20677Improve diagnostic about implicit default constructor absence for expected annotation classKT-81385Missing error of nullable expression in class literal in case of reified type parameterKT-81251Smartcast doesn't work for an effectively private inline functionKT-81245Automatic smart cast on properties with EBF is allowed on inlined property accessorsKT-81222Custom getter is allowed on a property with redundant EBFKT-80795Wrong type cast is added for IMPLICIT_COERCION_TO_UNITKT-81141Fix FirUnsupportedArrayLiteralChecker to forbid array literals inside non-annotation contextsKT-81383Return type of anonymous function used asrunargument is incorrectly inferred toNothingKT-80577"Return type mismatch" for self-referential types used as generic parametersKT-75215KDoc: references from@paramtag are rendered as plain textKT-79887K2 Compiler Internal Error in 'FirFakeOverrideGenerator.checkStatusIsResolved' MethodKT-78125false-negative shadowed contextual overload warning on local declarationsKT-81198Move type and type parameter annotations from jvm_metadata.proto to metadata.protoKT-81057Wrong handling of boxing during redundant casts optimizationKT-81191K2: "null cannot be cast to non-null type ConeTypeParameterLookupTag" with invalid codeKT-80285IJ monorepo: broken compilation after 2.2.20-RC updateKT-81115Allow converting lambda with explicit parameter when assigning to variable of an extension function typeKT-74588Redundant checkNotNull intrinsics instructions for Java generic methodsKT-78390UnmuteFusStatisticsIT.testKotlinxPlugins()after AtomicFU updateskotlin-metadata-jvmKT-79369Forbid typealiasing for all compiler-required annotationsKT-69294K2: ReportCONSTRUCTOR_OR_SUPERTYPE_ON_TYPEALIAS_WITH_TYPE_PROJECTION_ERRORinstead ofEXPANDED_TYPE_CANNOT_BE_INHERITEDafter switching to LV 2.2KT-81064Wrong safe call null check handling during redundant casts optimizationKT-80871StackOverflowError on AnnotationTarget.TYPEKT-80908K2: Compiling type annotation with self-annotated vararg fail with exceptionKT-81018ISE "IR class for Foo not found" on missing dependency when lowering SAM constructorKT-80936NON_PUBLIC_CALL_FROM_PUBLIC_INLINE :@PublishedApidoesn't work for fun interfacesKT-75748StackOverflowError when reading array from metadata annotationsKT-80606KotlinIllegalArgumentExceptionWithAttachments when using property itself in explicit backing field initializationKT-80940K2: Exception in FIR2IR with AnnotationTarget.TYPE with self-annotated non-vararg default argument and usage in child moduleKT-80538KaFirDiagnostic.EmptyRange doesn't work in most of the casesKT-80524Class is not abstract and does not implement abstract member when compiling with kotlinc-jklibKT-80597Apply fix for CVE-2024-7254 to our fork of protobuf 2.6.1KT-80849K2:ConstValueProviderImpldoesn't distinguish files with same name and packageKT-80602Exhaustiveness checker improvements for 2.3KT-80735Support || return/throw shortcut in unsed return value checkerKT-79651Report a warning about an unused return value only on the function nameKT-80719False positive: "Redundant visibility modifier": when overriding protected methods as "public"KT-80434K2: DSL marker doesn't work with lambda fieldsKT-80383Getter without a body is allowed on a property with an explicit backing fieldKT-80446Explicit visibility modifiers are allowed on EBFKT-80378ClassCastException on callable reference to a property with EBFKT-80377Fir2Ir: "Cannot determine expected receiver type" for callable reference to a property with EBF outside of classKT-80455K2: StackOverflowError in when exhaustiveness checker on red codeKT-72862[Native caches] Umbrella for failing codegen/box tests for corner cases in synthetic accessorsKT-20278NO_TYPE_ARGUMENTS_ON_RHS: Confusing diagnostic for inner class of generic outer classKT-80418Property with EBF with functional type isn't resolved if its type is AnyKT-80469Functional type from property is always used for explicit backing fieldKT-80535Missing INITIALIZER_TYPE_MISMATCH for EBFKT-80445Private visibility is possible for a property with EBFKT-80164Move name generation for unnamed context parameters to frontendKT-80684Line breaks are lost in multi-line diagnostic messages since 2.3.0KT-78112RETURN_VALUE_NOT_USED is reported for local function even if it isn't marked with annotation in CHECKER modeKT-48311Incorrect LINENUMBER after if with a suspend callKT-80688Bad SourceDebugExtension caused by enhanced coroutines debuggingKT-73851Native: compilation fails with ClassCastException with genericSafeCasts=trueKT-77593Add a warning when@IgnorableReturnValueis inconsistent between expect/actual functionsKT-79386Confusing error message when named parameters are used for java method callsKT-80600K2: Private and final modifiers are allowed on setter of open delegated propertyKT-77101Invoke on callable reference is considered ignorableKT-79923Remove lookup of@IgnorableReturnValueannotation from FirReturnValueOverrideCheckerKT-80517Synthetic kotlin.Any members in data classes are missing@MustUseReturnValueKT-80194VAR_TYPE_MISMATCH_ON_OVERRIDE: doesn't mention the inferred typeKT-80484K2: ClassCastException due to fake source for implicit lambda parameter (RedundantNullableChecker)KT-80592UninitializedPropertyAccessExceptionwhen anayzing annotations on members of anonymous classesKT-80399Anonymous Kotlin class incorrectly warns about deprecated java override despite '@Deprecated' annotationKT-79610Adding CocoaPod to Kotlin/Native MPP triggers IR serialization failure and commonizer errorsKT-79951Infinite loop in parsing incomplete full form destructuringKT-79866kotlinc 2.2.0 silently emits 'NonExistentClass' instead of reporting an errorKT-79777Argument type mismatch on value of complex type with a captured raw type argumentKT-78664False positive VARIABLE_NEVER_READ and ASSIGNED_VALUE_IS_NEVER_READ on function type variable with splited declaration and assignmentKT-79496False positive "when must be exhaustive" in triangle interface/class hierarchyKT-79774KtDestructuringDeclaration.getLPar & getRPar are brokenKT-80391K2: Only one context parameter is mentioned in the [NO_CONTEXT_ARGUMENT] diagnosticKT-79785ktypew:kotlin.collections.List already exists error using Swift ExportKT-78879"Sealed types cannot be instantiated": Can't instantiate Java-defined sealed Class from KotlinKT-21598Extension is shadowed by member should not be reported when member is deprecated with HIDDEN levelKT-79622FUNCTION_EXPECTED: Misleading 'expression cannot be invoked as a function' when inaccessible with private lambdaKT-80255[EXTENSION_FUNCTION_IN_EXTERNAL_DECLARATION] can be attached to the receiver type of a functional typeKT-79816Java Interfaces implemented by delegation have non-null return checksKT-80177Improve message of RECEIVER_SHADOWED_BY_CONTEXT_PARAMETER in case of member extensionKT-79770There is no RECEIVER_SHADOWED_BY_CONTEXT_PARAMETER if the usage of fun is from inside the classKT-79430False positive EXTENSION_SHADOWED_BY_MEMBER on overridden member extensionKT-62934Incorrect line mapping inside inline lambda after non-local returnKT-79545K2: no error on crossinline lambda usage in anonymous object base constructor callKT-79643HAS_NEXT_FUNCTION_AMBIGUITY and NEXT_AMBIGUITY diagnostics are always ignored in favor of HAS_NEXT_FUNCTION_NONE_APPLICABLE and NEXT_NONE_APPLICABLEKT-79327Modifier 'private' is not applicable to 'value parameter' is reported for context parametersKT-76453K2 IDE: autocomplete freezeKT-77182A function in a file annotated with@file:MustUseReturnValue doesn't produce a warning when it is used from compiled codeKT-78541Jspecify: Unsound platform type despite@NullMarkedfor an override with a generic-subclass return typeKT-79672'when expression must be exhaustive' even after using 'require()'KT-71306K2 IDE / Kotlin Debugger: “Cannot find local variable 'block' with type kotlin.jvm.functions.Function0” on evaluating lambda arg inside inline functionKT-76991K2 IDE / Kotlin Debugger: ISE “Couldn't find declaration file for” on evaluating local fun when the scope has also inline fun from another file callKT-79877K2 IDE / Kotlin Debugger: failed evaluations of a code fragment capturing local data classKT-77401[FIR]ParameterNameTypeAttribute.namedoesn't support@ParameterNamewith compile-time constant property argumentKT-79682Fix partially uninitialized locals after coroutine spills insertionKT-79562NPE when passing non-lambda argument of nullable non-suspend function type into function that accepts nullable suspend function typeKT-79693NotImplementedError: An operation is not implemented: Unknown file with KMP separate compilationKT-79662Unused return value checker doesn't work for com.google.errorprone.annotations.CheckReturnValueKT-79781Missing MISSING_DEPENDENCY_CLASS when using type alias with inaccessible RHSKT-77772Only report exposed type on qualifier if it's resolved to an objectKT-79765K2. Do not report ignore return value for unresolved referenceKT-79017False negative REDECLARATION on private nested classKT-79519Nested type alias is unreachable from another moduleKT-72039StackOverflowError on calling keySet on a Kotlin subclass of Java subclass of ConcurrentHashMapKT-75843K2: incorrect line numbers in an if-expression with a super-callKT-77504Add a warning when@IgnorableReturnValueis inconsistent on overridesKT-78389Perform version 2.3 boostrappingKT-79092Crash on default argument in function in fun interfaceKT-77729Package-level@NullMarkeddoes not work when kotlinc sees .java source filesKT-79013False negativeNOT_YET_SUPPORTED_IN_INLINEon inline local functions inside inline functionsKT-79139False positive CONFLICTING_OVERLOADS for context parameters instead of receiversKT-35305Address the overload conflict resolution between unsigned and non-primitive typesKT-42096No diagnostic reported oninlinemodifier on an enum entryKT-79355Failed to fix the problem of desugaredincwith new reverse implies returns contractKT-79277Implies returns contract doesn't affect the return type of the function if it is in the argument positionKT-79271Implies returns contract doesn't impact exhaustivenessKT-79218SMARTCAST_IMPOSSIBLE for top‑level extension‑property getter despite returnsNotNull contractKT-79220returnsNotNull contract ignored on extension function with nullable receiverKT-79354IllegalStateException: Debug metadata version mismatch. Expected: 1, got 2 with compiler 2.2.20-Beta1 and stdlib 2.2.0KT-77986K2: False negative: "Local classes are not yet supported in inline functions"KT-79456Redeclaration conflict checks of private top-level classifiers rely on an incorrect containing fileKT-79125RVC full mode: delegated interfaces are not checkedKT-63720Coroutine debugger: do not optimise out local variablesKT-78595type variable leak on a generic property as a call argument given an unstable smart castKT-79076'IllegalStateException: Cannot serialize error type: ERROR CLASS: Uninferred type' with Exposed column using recursive generic typeKT-59807K2: Replicate the MUST_BE_LATEINIT logic from K1KT-76782K2: Incorrect resolve into unrelated invoke operator with wrong diagnosticKT-78066TYPE_PARAMETER_OF_PROPERTY_NOT_USED_IN_RECEIVER error message does not account for context parametersKT-76065Drop JavaTypeParameterDefaultRepresentationWithDNN featureKT-77808Inference: recheck the code about DNN-related hacksKT-24202NOTHING_TO_OVERRIDE if super-class reference misses generic argumentsKT-78909K2: Missing diagnostics [CYCLIC_INHERITANCE_HIERARCHY] for recursive class inheritance leads to StackOverflowErrorKT-75969java.lang.IllegalArgumentException: source must not be null on red codeKT-76902Omit type-use annotations from diagnosticsKT-17460Diagnostics and intention on suspend function that is overriden with non-suspend one.KT-56665K2: false positive RECURSIVE_TYPEALIAS_EXPANSIONKT-78932Contracts are allowed for open and overridden property accessorsKT-77203FIR: Consider adding destructured type to all COMPONENT_FUNCTION_* diagnosticsKT-77685"IllegalArgumentException: Sequence contains more than one matching element"KT-78452Drop redundant frontend structures after fir2ir conversionKT-70507Should parentheses prevent from plus/set operator desugaring?Compose compiler
New features
98d3907Introduce a compose group analysis module that produces a proguard/R8 mapping from group keys in bytecode.Fixes
b/419049140Disabled memoization intryblocksKT-81081Generate Compose-specific proguard mappings when Compose compiler plugin is applied.b/431025881[Compose] Clean up runtime version checkerb/365922168Addjava.util.Localeto the list of known stable classesb/407549020Introduce a registry of known stable markersb/417989445Added a diagnostic to restrict usages ofrunCatchingin@ComposablefunctionsKT-80294Fix crash with inline@Composablefunction referenceb/430140896Fix IrSourcePrinter output for when branch check and typechecksCMP-9167iOS: Platform declaration clash: The following functions have the same IR signatureIDE. Gradle Integration
KT-46273MPP: Don't fail import for case of missed platform in source set structureKT-46417[UNRESOLVED_REFERENCE] For project to project dependencies of native platform test source setsKT-44845After update to Kotlin 1.4.30 all external dependencies is unresolved in IDE with kotlin.mpp.enableGranularSourceSetsMetadata=trueKT-46142K/N distribution is unavailable from IDE with multiplatform hierarchical project structure enabledIR. Actualizer
KT-77337IrNoExpectSymbolsHandlerfinds expect class reference after enabling annotation traversal in IRKT-80002Investigate the need for map copying in IrCommonToPlatformDependencyExtractor.ktKT-80131KMP Separate Compilation: No override for FUN IR_EXTERNAL_DECLARATION_STUB name:KT-80064KMP Separate Compilation: ClassCastException: class org.jetbrains.kotlin.ir.symbols.impl.IrTypeAliasSymbolImpl cannot be cast to class org.jetbrains.kotlin.ir.symbols.IrClassSymbolKT-80051KMP Separate Compilation: Actualization of common dependencies failed on 'PROPERTY FAKE_OVERRIDE name:modCount visibility:protected modality:FINAL [fake_override,var]'KT-79998KMP Separate Compilation: java.lang.IllegalStateException: No override for FUN IR_EXTERNAL_DECLARATION_STUB name:IR. Inlining
New Features
KT-70360KLIBs: Uniformly handletypeOf()calls at 1st/2nd stages of compilationPerformance Improvements
KT-69497Crossinline lambda is allocated on K/N & JSFixes
KT-78673Make fakeOverrideLocalGenericBase not using red codeKT-78537[Inliner] Incorrect KFunction.name of a reference to inlined local functionKT-74892Investigate passing inline lambda as argument of another inline functionKT-81673False warnings about ABI change in dependencies in library mode in 2.3.0-Beta1KT-81713[Inliner] Compilation of inline function with recursive call applied to TODO() fails with an internal errorKT-80653[IR Inliner] Space: "Local declarations should've been popped out by this point"KT-78392CommonPrefix: Add a way of stopping execution when one of the phases is unsuccessfulKT-80927[Native] Review intrinsics with PublishedApiKT-81070[Inliner] kotlin/Any is unboundKT-80628KLIB inliner: Not enough information about the "full" modeKT-69516Double-inlining for Native: Enable visibility checks after 1st phase of inliningKT-79334Unify intrinsics used on 1st phase of IR inliner in KLIB-based compilersKT-80610KLIB inliner: Always apply cross-module inlining to pre-processed inline functionsKT-80565KLIB Inliner: Add a special annotation to prohibit inlining of marked inline functions in stdlib on 1st compilation phaseKT-80883[Inliner] Run pre-serialization lowerings in all testrunnersKT-77876IrVisibilityChecker: Different set of exceptions for 1st and 2nd compilation stagesKT-80693[IC] Split IC invalidation tests for cross-module IR InlinerKT-79718KLIB inliner: Emit warning on generation ofpublicsynthetic accessor when running in "explicit API mode"KT-80226[IR Inliner] Generate constructor accessors as constructors, not static functionsKT-80692[IC] Split IC invalidation tests for intra-module IR InlinerKT-77103[Inliner] IrLocalDelegatedProperty was not serialized, while its symbol and IrRichPropertyReference were.KT-80537The expected error is not emitted from FirJsKlibSyntheticAccessorsTestGenerated and NativeKlibSyntheticAccessorsTestGeneratedKT-78903Unifycodegen/boxInlinetests withcodegen/boxKT-78989Add missing PL tests for inline functions/property accessorsKT-79771kotlinx-coroutines-core: Public synthetic accessor generated with enabled KLIB IR inlinerKT-79680IrConstructorSymbolImpl is unboundin lambdaWithoutNonLocalControlflow.ktKT-70849Ensure correct debug info for intra-module IR inlining on the first compilation phaseKT-79800JS BE errors with default values when IR inliner is enabledKT-79352Remove excessive validations fromValidateAfterAll...on the first stageKT-76599MigrateIrValidationAfterInliningAllFunctionsPhaseto the first stage of compilationKT-78245Synthetic Accessors incorrectly copies default valuesKT-72594[JS][Native] Add IrInliningFacade to test runnersIR. Interpreter
KT-72356K2 Native: IllegalStateException when annotation has the same source range as a constant in another fileKT-72881K2: incorrect empty array as annotation argument when parameter has default valueIR. Tree
Fixes
KT-79371Fix handling of broken SAM conversion in PL with enabled Rich ReferencesKT-81952"IllegalStateException: Callable reference with vararg should not appear at this stage" for callable references to functions with generic vararg parametersKT-79739Static synthetic accessors inside generic classes access its type parametersKT-78100Track and annotate internal annotations with@PublishedApito enable annotation visibility validationKT-80825DropIrSerializationSettings.reuseExistingSignaturesForSymbolssettingKT-79807Broken IR tree invariants in IrReplSnippet after FIR2IRKT-77819[IR] Fine-tune IrValidator's run after Fir2IR and IR pluginsKT-70160Remove IrDeclaration.parents after Anvil updateKT-80454LocalDeclarationsLowering: Clean-up the dead codeKT-80819Rework IrFileValidator to use Hashmap instead of ClassValueKT-80516Kotlin-like IR dump: Don't render tailrec as lateinitKT-78856Refactor LocalDeclarationsLowering to split it in smaller partsKT-79439KLIB stdlib symbols loading: Split the result of merging of IrBuiltins with BuiltinSymbolsBase hierarchy into two parts (for 1st & 2nd phases)KT-79437KLIB stdlib symbols loading: Drop loading functions from IrBuiltins and migrate usages to SymbolFinder functions and lazy filteringKT-79569Unexpected error during DFG phase in Native due to PL issue with SAM conversion represented by rich referenceKT-76601IrValidatorConfig should have all checks disabled by defaultKT-69662Deduplicate functioncreateTemporaryVariableKT-79440KLIB stdlib symbols loading: Drop BuiltinSymbolsBase from plugin APIKT-78960[FO] Limit static fake overrides generation for static functionsKT-76813IR validator: not all symbols/references are visitedJVM. Reflection
KT-79020Suspend lambdas return type is shown as ??? in reflectionKT-81967isSubtypeOf: ClassCastException: CapturedKType cannot be cast to class AbstractKTypeKT-76521Reflection: change KType representation to avoid dependency on K1KT-81619Reflection: Function supertype of a FunctionN class has flexible type in new implementationKT-74529Context parameters support in reflectionKT-80901Reflection: incorrect translation of raw types in the new implementationKT-74624Reflection: KClassifier.createType(...) ignores annotations parameterKT-80203Reflection: provide a way to use legacy K1-based implementationKT-80236Reflection: KType.toString for raw types no longer renders "(raw)"KT-79206Reflection: suspend functional type classifier is nullJavaScript
New Features
KT-80401Kotlin/JS support fordefault exportin generated JavaScriptKT-79284Use BigInt64Array for LongArrayKT-79222K/JS: Allow using Long in exported declarationsKT-79394Add the possibility to write common external declarations between JS and WasmJS targetsPerformance Improvements
KT-57128KJS: Use BigInt to represent Long values in ES6 modeFixes
KT-79928Allow JsModule/JsNonModule/JsQualifier invocation on per-entity levelKT-79514java.lang.IllegalStateException: IrClassSymbolImpl is unbound. Signature: kotlin.js/Promise|null[0] on running jsBrowserTestKT-82005KJS: "TypeError: callAgent.jsonRpcCall_ij3z26_k$ is not a function" after code change in 2.3.0-Beta1/2KT-79359Kotlin/JS: Suspending function doesn’t return Unit on es2015KT-79089KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode testsKT-56281KJS: Can't export suspend functionsKT-79926Wrong export of interfaces with companions with ES ModulesKT-80168Allow@JsStaticinside interface companionsKT-70222Remove legacy JS BE-related CLI flagsKT-81424Kotlin/JS: Cannot Get / in a simple running applicationKT-80873KJS: Stdlib requires ES2020-compatible JS engine due to BigInt type literalKT-81066Wasm, JS: Remove redundant logging in compiler outputKT-72833KJS: Source maps have incorrect sources paths inper-fileKT-74055KJS:@JsPlainObjectadds JS code even if marked interface is not usedKT-72474KJS:@JsPlainObjectdoesn't honour -XXLanguage:+JsAllowInvalidCharsIdentifiersEscapingKT-79644BigInt enabled for ES 2015 despite being an ES 2020 featureKT-52771KJS: Pair should be exported to JavaScriptKT-79704Unify variance rendering between JS and other backendsKT-69297Deprecate referencing inlineable lambdas injs()callsKT-80086[k/js] Resolving imported string literalsKT-79066[Kotlin/JS] jsNodeTest fails with SyntaxError when a test file has@file:JsExport and useEsModules() is enabledKT-77385Investigate partial linkage problems for JS HMPP testsKT-79628Remove IR nodes from ExportModelKT-79916K/JS: "Uncaught TypeError" when using 'Xes-long-as-bigint' in compose-htmlKT-79050KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79977KJS: Long.rotateLeft returns incorrect result when BigInts are enabledKT-78831AbstractFunctionReferencesLowering: fragile fake override generationKT-52230KSJ IR: Applying identity equality operator to Longs always returns falseKT-6675KotlinJS: toInt() on external Long throws errorKT-79184K/JS: Further intrinsify BigInt-backed Long operationsKlibs
New Features
KT-80761K2: [K/N] Should reported klib usage include inheritancePerformance Improvements
KT-80861[Klib] Deduplicate IrFileEntry.nameKT-80866[Klib] Optimize size of IrFileEntry.line_start_offsetKT-80438Uncached KlibMetadataClassDataFinder.findClassDataFixes
KT-64237Klib metadata: migrate to using the common annotations instead of klib-specific extensions in the compilerKT-80099KLIB resolver: Could not find file because of missingklibextension in resolved symlink pathKT-80999Reuse existingIrKotlinLibraryLayoutinKotlinLibraryfor reading pre-processed functionsKT-80290Removeifand TODO incountInAsInlinedLambdaArgumentWithPermittedNonLocalReturnsKT-80298K/N: one-stage compilation is brokenKT-79958KLIB tool fails to render IR if there is IrErrorType in a lirbraryKT-75241Move ExperimentalLibraryAbiReader to a publishable artifactKT-76260MakeIrRichCallableReferencesInKlibslang feature stable in LV=2.3KT-61552[PL] IndexOutOfBoundsException in SAM conversion with substituted functionKT-74417Deduce the metadata version based on LV in KLIB-based backendsKT-75980[Klib] Reduce serialized size of IrFileEntries for sparse usage of another source filesKT-73826DeduplicateIrFileEntrythat is serialized insideIrInlinedFunctionBlockLanguage Design
KT-76926Allow return in expression bodies if return type is specified explicitlyKT-78866Show an error for implicit receiver shadowed by context parameterKT-81561Update nested type aliases KEEP to reflect local type aliases supportKT-81015Stabilize nested type aliasesKT-32619JS: return Promise whencontinuationis not providedKT-78976Decide if K2 should support local functions inside of local inline functionsKT-79308Ability to actualize empty interfaces as AnyKT-48872Provide modern and performant replacement for Enum.values()KT-28850Prohibit protected visibility in final expected classesLibraries
New Features
KT-81092Uuid: support generation of version 7 uuids with a given timestampKT-78463Annotate wasm and JS targets of kotlin-stdlib with@IgnorableReturnValuewhen appropriateKT-74444EnumEntries type should implement RandomAccessKT-78462Annotate kotlin-stdlib-jvm with@IgnorableReturnValuewhere appropriatePerformance Improvements
KT-72111Change Duration.parseOrNull logic to not throw exceptions internallyFixes
KT-82901Long.MIN_VALUE.millisecondsproduces invalid denormalized DurationKT-81995K/N: CMP: Undefined symbol _kfun:kotlin.time.Duration.kotlin.time.DurationKT-56822Deprecate Number.toChar() with error deprecation levelKT-81078Increase kotlin.io.createTempDir and createTempFile deprecation level to ERRORKT-74493Deprecate String.subSequence(start, end) with error and drop it in the futureKT-79192Increase InputStream.readBytes(Int) deprecation level to HIDDENKT-80778Stabilize kotlin.time.Clock and kotlin.time.InstantKT-81043String.toBigDecimalOrNull rejects strings accepted by String.toBigDecimalKT-81477Uuid.Companion.generateV* are missing SinceKotlin annotationKT-81478FileTreeWalkTest.withDirectoryFilter fails on WindowsKT-74411Introduce Uuid.generateV4() and generateV7()KT-80530Annotate Kotlin/Native stdlib with must-use value/@IgnorableReturnValuewhen appropriateKT-79791Duration.parse incorrectly handles negative decimal seconds in ISO-8601 formatKT-80619[KLIBs] Enable intra-module inliner in stdlib & kotlin-testKT-76773stdlib: contextOf's type argument can be inferred via contextOf's context argumentKT-71822Intersection with (subtraction from) an identity set may produce incorrect resultsKT-80431Remove suppression of "ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT" from stdlibKT-80605Rename MustUseReturnValue -> MustUseReturnValuesKT-69947KLIB stdlib: All intrinsics that can be used in KLIBs with inlined IR must be included in stdlib ABI dumpKT-59044Improve various aspects of TimeSource documentationKT-80544Mark controversial path extensions (like .deleteRecursively()) as ignorableKT-80603K/N and K/Wasm: \p{N} category is not supportedKT-80661ArrayDeque.lastIndexOf may return -1 for an element present in the dequeKT-80390ArrayDeque.indexOf(null) wrongly returns 0 after removalsKT-79094Change signature of assertFailsWith or make lambda excluded otherwiseKT-72028Incorrect parameters order in IndexedValue documentationKT-80130[stdlib] Commonize AssociatedObjects in commonNonJvmMainKT-80107[stdlib] Move CancellationException to commonNonJvmMainKT-80179Investigate why StringBuilder.length is not enhanced automaticallyKT-80046Increase test coverage of Duration.parse[IsoString][OrNull] methodsKT-76459Remove comments about sorting stability in unsigned-type arraysKT-79489Generate Stdlib API reference for webMain source setKT-78243Drop JS- and Wasm-specific IrLinkageError classesKT-79108Remove the default argument forlinkageErrorfrom kotlin.js.getPropertyCallableRefKT-79130K/JS: Remove bodies from intrinsified Long methodsKT-79239K/Wasm: elementAt extension function of Array/PrimitiveArray/UnsignedArray does not throw IndexOutOfBoundException on incorrect indexKT-79256K/Wasm: MatchResult.groups raises a trap on invalid group indexKT-57317Repack EnumEntries from stdlib into the compilerNative
KT-80620Bump minimal iOS and tvOS supported versions to 14.0KT-80624Bump minimal watchOS supported versions to 7.0KT-79384K/N: Application Not Responding: Thread DeadlockKT-80536Native:DependencyDownloaderseems to have no timeoutNative. Build Infrastructure
KT-80147Set proper LV and AV forkotlin-native/performance/buildSrcKT-79474Kotlin/Native: fix breakpad buildKT-79215Kotlin/Native: fix distInvalidateStaleCaches on windowsNative. C and ObjC Import
KT-79752Native: make cinterop generate CCall.Direct annotationsKT-79753Native: support CCall.Direct calls in the compilerKT-81312Native: when-Xccall-mode directis used, mark unsupported declarations with unresolvable symbol name instead of@Deprecated(ERROR)KT-79571Xcode 26 beta 4: CInteropKT39120TestGenerated.testForwardEnum failedKT-80838Cinterop fails with an error when Compilation works fineKT-49034Kotlin/Native:cnames.structs.Fooresolves into wrong declarationNative. ObjC Export
KT-81906NormalizeCFBundleIdentifierwhen producing Apple frameworkKT-78810[ObjCExport] Enable explicit ObjC block parameter names by defaultKT-80271ObjC/Swift Export: Remove Native platformCloneablechecksKT-78604Consider not inheritingKlibScopefromKaScopeKT-79767ObjCExport: private companion must not be exposedKT-79724ObjCExport: extensions orderKT-79548ObjCExport: mangling difference between K1 and K2 when translating KotlinDurationCompanionKT-79475ObjCExport: invalid property getter translationKT-79346ObjCExport: Any method overridesKT-78871ObjCExport: translation of keywordreleasewith parameter generates invalid headerNative. Runtime. Memory
KT-75918Native: Deprecate -Xallocator=stdKT-80678Native: pagedAllocator=false sweep is slowKT-75916Native: Enable sanitizer support with pagedAllocator=falseNative. Swift Export
Fixes
KT-81355Swift Export: Introduce a flag to turn off coroutines exportKT-80969Swift Export: Callsuspendfunction asasyncon swift sideKT-80111Swift Export Build Fails Due to Errors in KotlinStdlib.swiftKT-80884Swift Export: support async in SIRKT-80185Swift Export: IllegalArgumentException – Collection contains more than one matching elementKT-79889K/N: swift-export fails under several different conditionsKT-79518Swift export: represent kotlin.Any as swift.anyKT-78603Do not inherit SirAndKaSession from KaSessionKT-79227Swift Export: Fix First Release IssuesKT-79521'_CoroutineScope' is inaccessible due to 'internal' protection levelKT-79181Swift Export Fails When Using T: Comparable Generic Constraint in Kotlin ClassesTools. Ant
KT-75875Remove Ant supportTools. BCV
KT-80313Add ability to generate dump from jar files [ABI Tools]Tools. Build Tools API
New Features
KT-78194BTA: port the JVM prototype to the new designKT-79409BTA: Support removed compiler arguments properlyKT-78193BTA: Implement core infrastructure according to the new designKT-78196BTA: implement API adapter for the prototype implementationKT-77999BTA: Generate BTA options from compiler arguments descriptionsFixes
KT-75357CompilationService.loadImplementation(loader) Expects aClassLoader, but Fails if its not aURLClassLoaderKT-73090Gradle 8.11 kotlin compilation fails when run with -Pkotlin.compiler.runViaBuildToolsApi=trueKT-81321Deprecate old BTA prototype APIKT-81602BTA: rename KotlinToolchains.jvm@JvmNamefor a more Java-friendly APIKT-75356Failing to pass a-dargument causes Build Tools API to NPEKT-81130BTA: using KotlinVersion from stdlib in the API breaks when using isolated classloaderKT-78195BTA: migrate the test infrastructure from the prototype to the new designTools. CLI
KT-81077Add JVM target bytecode version 25KT-79867CompilerConfiguration.configureSourceRoots puts obfuscated file paths instead of ones passed onclasspathto CLIConfigurationKeys.CONTENT_ROOTSKT-80348Expose 'XXLanguage' compiler argument as a normal argumentKT-80428KMP Separate Compilation: Handle friend dependenciesKT-74590Deprecate -Xjvm-default in favor of -jvm-defaultKT-80349KMP Separate Compilation is enabled on non-KMP compilationsKT-79982Fix description of -Xjspecify-annotationsKT-79403Improve generator for deprecated CLI argumentsKT-75968Set proper lifecycle for all existing compiler argumentsKT-79293Create Language Features and compiler argument with parameter for new destructuring featuresTools. Commonizer
KT-49735[Commonizer] :commonizeNativeDistribution fails for projects with two or more same native targetsKT-47523MPP: Unable to resolve c-interop dependency if platform is included in an intermediate source set with the only targetKT-48118Commonized c-interop lib is not attached to common main source setKT-46248MPP: Compile KotlinMetadata fails with Unresolved reference if only one native platform from shared source set is availableTools. Compiler Plugin API
KT-82563Improve compiler error messages to identify incompatible plugins causing compilation failuresKT-55300Provide a mechanism to describe ordering and dependencies for compiler pluginsKT-82099Compiler plugin ordering has no effectKT-74867LLFirIdePredicateBasedProvider matches local classes when it shouldn'tKT-52665DeprecateComponentRegistrarKT-75865Provide an API for setting the file name for the file with top-level declarations generated by a pluginTools. Compiler Plugins
New Features
KT-81091[DataFrame] Receivers from FirExpressionResolutionExtension are not resolved in CodeFragmentFixes
KT-64339Symbol Light Classes: No Arg compiler plugin generates synthethic constructor which is not seen from light classesKT-80429Power Assert with "Run test using: IntelliJ": NoClassDefFoundError (org.jetbrains.kotlin.kotlinx.collections.immutable.ExtensionsKt) during compilationKT-79319Lombok: NullPointerException onmvn compilewhen importing Java constantsKT-81348Incorrect bytecode mentioning error class/package is generated by kotlinx-serialization when private serializer in another module is not accessibleKT-80944FirUserTypeRefImpl cannot be cast to class FirResolvedTypeRef in maven projectKT-80815NoArg compiler plugin: Promote NO_NOARG_CONSTRUCTOR_IN_SUPERCLASS diagnostic from warning to errorKT-80822False positive NO_NOARG_CONSTRUCTOR_IN_SUPERCLASS reported for a class with explicit noargs constructor already presentKT-53122Constructors generated with NoArg have no@Metadataand are invisible for the frontendKT-74687Kotlin Lombok: False positive when calling builder on Java recordKT-80419Remove bundled jetbrains annotations from kotlin-dataframe-compiler-pluginKT-79245[AtomicFU] Drop K1/JS- and K1/Native-specific testrunnersKT-79197DataFrame: Cannot find local variable 'this@df' with type Scope0KT-73865Incorrect type is generated for irPropertyReference during K/N transformationTools. Compiler plugins. Serialization
KT-70345Promote COMPANION_OBJECT_IS_SERIALIZABLE_INSIDE_SERIALIZABLE_CLASS diagnostic to errorKT-79695Serialization does not exclude field-less properties in 2.2.20-Beta2KT-79246[Serialization] Drop K1-specific testrunnersTools. Gradle
New Features
KT-78199Gradle: Migrate JVM compilation in KGP to the new BTAKT-45161Gradle: Support registering generated sources with the Kotlin modelKT-71602Introduce KotlinTopLevelExtensionFixes
KT-67290Deprecate usage of HasKotlinDependencies inside KotlinCompilationKT-80950KGP breaks configuration cache when signing plugin with GnuPG is appliedKT-64211Provide support for the kotlin.internal.compiler.arguments.log.level property while running via build tools apiKT-81719Do not register swift export related configurations when it's not requiredKT-78741Add FUS analytics for klib cross-compilationKT-75449Update deprecation ofKotlinJsTestFramework#createTestExecutionSpecKT-64273Gradle: remove symbols deprecated after KT-54312KT-74915Make ExtrasProperty.kt internalKT-64992Remove KotlinCompilation.sourceKT-82068Workaround iOS Simulator start failure in ITKT-79482Report webMain / webTest usage in FUS metricsKT-81199Deprecate "org.jetbrains.kotlin.android" pluginKT-82244Conflicting warnings when using AGP 9.0.0-alpha with built-in Kotlin disabledKT-81161Gradle plugin api reference: compiler arguments types are not availableKT-70251Gradle: hide compiler symbols in KGPKT-81837Run integration tests against AGP 8.13KT-77457Compile against Gradle API 9.0KT-79238Bump minimal supported AGP version to 8.2.2KT-75869KGP JS - Update deprecated constructorsKT-76720Raise deprecation level to error for Kotlin*Options propertiesKT-79047Gradle compileKotlin fails with configuration cacheKT-81415BTA: Duplicate daemons when compiling JVM + JS in KGPKT-80763Add redirect link to error message when 'org.jetbrains.kotlin.android' plugin is used with built-in KotlinKT-81038Gradle: remove support for properties disabling precise task outputs backupKT-80808Warning from kotlin-dsl with kotlin("jvm") on Gradle < 9.0 doesn’t suggest updating GradleKT-80875Gradle: runToolInSeparateProcess may fail on Windows with too long command lineKT-79851Emit an actionable warning/error on unsupported AV/LV configured bykotlin-dslKT-77458Run Gradle integration tests against Gradle 9.0KT-80172Error message changes depending on the order of applying 'org.jetbrains.kotlin.android' and 'AGP' 9.0+ with built-in Kotlin pluginKT-76177Remove deprecated classpath snapshot task inputsKT-79339Remove additionalMetadata from compiler options DSLKT-73478Add module level descriptionKT-80083KGP IT: fix tests on WindowsKT-79034Automatically disable cross compilation if it's not supported on the hostKT-79408A lot of errors files are created when compile KotlinKT-78827Rewrite Gradle compiler options DSL generatorTools. Gradle. BCV
KT-80687Add description to Gradle tasks [ABI Validation]KT-80621Move Gradle tasks into suitable groups [ABI Validation]KT-78625Kotlin's built-in BCV generates empty .api filesTools. Gradle. Compiler plugins
KT-81827Add a switch for mapping file tasks in Compose Gradle pluginTools. Gradle. JS
Fixes
KT-79921Web Tooling Gradle API does not respect webpack reconfigurationKT-81009K/JS, Wasm: Promote deprecation of NPM and Yarn package manager internal functionsKT-76019Wasm/JS: Promote phantom-js for Karma deprecation to ERRORKT-81005K/JS, Wasm: Promote deprecation of ExperimentalWasmDsl to ErrorKT-81010K/JS, Wasm: Promote deprecation of internal JS functions to ErrorKT-81008K/JS, Wasm: Promote deprecation of ExperimentalDceDsl to ErrorKT-81007K/JS, Wasm: Promote deprecation of public constructors of JS declarations to ErrorKT-81006K/JS, Wasm: Promote wasm declarations in "js" package deprecation to ErrorKT-81004K/JS, Wasm: promote deprecation NodeJsExec.create to ErrorKT-75621KJS / Gradle: Disable npm in --offline modeKT-79910Wasm, JS: Upgrade NPM versionsKT-76996Wasm: js tasks triggers wasm subtasksKT-79237Upgrade NPM dependencies versionsTools. Gradle. Multiplatform
New Features
KT-76446Add kotlin-level dependency block to work the same way as commonMain/commonTest dependencies blocksFixes
KT-61127Remove scoped resolvable and intransitive DependenciesMetadata configurations used in the pre-IdeMultiplatformImport IDE importKT-81980KGP warning gives incorrect suggestion for AGP application compatibilityKT-81601Withandroid.builtInKotlin=falseAGP 9.0+, usingkotlin-multiplatformplugin will fail with aClass Cast ExceptionKT-81060KMP stores common compilation dependency resolution in Configuration cache leading to error when deserializing (Android only)KT-80720Gradle import of multiplatform project fails: "Failed to invoke getAssociateWith on KotlinJvmCompilation_Decorated"KT-81200Deprecate 'androidTarget'KT-74005Implement a prototype of Unified Klib support in Kotlin Gradle PluginKT-77367[uklib] Project dependency to kotlin-jvm module leads to failure in transform during IDE importKT-80785Withandroid.builtInKotlin=falseandandroid.newDsl=true, usingkotlin-androidplugin will fail withClassCastExceptionKT-81434[uklib] androidCompileClasspath resolves java compatibility variant instead of android for uklib libraryKT-81469[uklib] kmpPublicationStrategy affects resolution during import for androidTargetKT-81249Kotlin 2.2.20 broke KMP implementation of ParcelizeKT-77066Promote kotlinArtifacts deprecation to an errorKT-74955Remove resources resolution strategy completelyKT-62614Remove legacy kotlin-gradle-plugin-modelKT-79559AGP complains about configurations resolved at configuration time due to KMP partially resolved dependencies diagnosticKT-78993The value for property '*' property 'dependencies' is final and cannot be changed any furtherKT-76200TestModuleProperties.productionModuleName for JVM module isn't present with 2.1.20-RCKT-55312Replace "ALL_COMPILE_DEPENDENCIES_METADATA" configuration with set of metadata dependencies configurations associated per setKT-52216HMPP / KTOR: False positive "TYPE_MISMATCH" with Throwable descendantKT-54312TCS: Replace CompilationDetails abstract class hierarchy by composable implementationKT-55230Remove metadata dependencies transformation for runtimeOnly scopeTools. Gradle. Native
KT-80675Commonized cinterops between "test" compilations produce an import failureKT-77732commonizeCInteropfailed with "Unresolved classifier: platform/posix/size_t"KT-81510commonizeCInteropexception with 'kotlinNativeBundleConfiguration' not foundKT-81134Native: Gradle configuration failure likely related to Klibs cross-compilationKT-77486Remove bitcode DSLKT-64107Kotlin Gradle plugin allows native binaries to have bothdebuggableandoptimizedflags set totrueKT-74910BumpdestinationDirin CInteropProcess to hiddenKT-74911Promote CInteropProcess.konanVersion to hiddenKT-74864Enable exporting KDocs by default to ObjCKT-72705K/N: compile task cache can not be used due to 'artifactVersion' input propertyTools. Gradle. Swift Export
KT-81465Swift Export package is build with wrong targetKT-81460[KGP] Crash in SwiftExportRunner due to older stdlibKT-79524NoSuchMethodError: 'java.lang.String org.gradle.api.artifacts.ProjectDependency.getPath() for swift export with dependency export fro gradle < 8.11Tools. Incremental Compile
KT-75864Implement a conservative mechanism of the IC with compiler plugins generated top-level declarationsKT-55982K2: Consider global lookups from plugins in incremental compilationKT-79504Implement an API to provide IC lookups from backend pluginsKT-75657Fix difference in incremental compilation scenarios in BTA in-process vs daemon compilation modeKT-79541Refactor tracking of files relation in ICKT-74628Incremental compilation runner does not check compiler exit code before mapping sources to classesTools. JPS
KT-77347Support file-less compatible IC approachTools. Kapt
KT-79138K2: KAPT Java Stub Gen:Unresolved referencewith@kotlin.Metadata in Java in 2.2.0KT-79133K2 kapt: class literal with typealias is not expandedKT-79305K2 kapt: ISE "Cannot evaluate IR expression in annotation" on typealias with unresolved expansionKT-79136K2 kapt: unresolved nested class references in annotation arguments are generated without outer class namesKT-71786K2Kapt: Stubs generation does not fail on files with declaration errorsKT-80843K2: KAPT: Crash on any data class with duplicate properties: "Sequence contains more than one matching element"KT-73411Removekapt.use.k2property and code which allows to use K2 with K1 kaptKT-79641Kapt: too much information is printed in verbose modeTools. Maven
KT-82180kotlin-maven-plugin: IC succeeds after dependent source deletionKT-78201Maven: migrate JVM compilation to the new BTAKT-814142.2.20 regression: OOM (Compressed class space) when in-processKT-81435Maven: Improve BTA classloader reusageKT-81681Maven: "NoClassDefFoundError" on a second test runKT-81218Kotlin Maven Plugin 2.2.20: Java classes not resolved with enabled incremental compilation without daemonTools. Performance benchmarks
KT-79709Add-Xdetailed-perfCLI flag to control verbosity of performance logsKT-79226[K/N] Add performance measurement for native backend loweringsTools. REPL
KT-80062ReplSnippetLowering sometimes produces IrConstructorCall with too many argumentsTools. Scripts
KT-80071Kotlin script mode produces invalid IR: "value that is not available in the current scope"Tools. Statistics (FUS)
KT-77407Add performance measurement for prefix loweringsKT-79455[FUS] Collect KSP plugin versionKT-79090Integrate dynamic stats intoMarkdownReportRendererTools. Wasm
KT-82365K/Wasm: NodeRun tasks in Wasi depend on kotlinWasmToolingSetupKT-81313K/Wasm: update Node.js to 24.xKT-81315K/Wasm: update Node.js to 25.xKT-80582Multiple reloads when using webpack dev server after 2.2.20-Beta2KT-80896K/Wasm: debug tests only onceKT-78921K/Wasm: don't generate empty yarn.lock filev2.2.21: Kotlin 2.2.21Changelog
Backend. Wasm
KT-81372K/Wasm: JsException: Exception was thrown while running JavaScript code on Safari 18.2/18.3KT-80018K/Wasm: exceptions don't work properly in JavaScriptCore (vm inside Safari, WebKit)Compiler
KT-81191K2: "null cannot be cast to non-null type ConeTypeParameterLookupTag" with invalid codeKT-80936NON_PUBLIC_CALL_FROM_PUBLIC_INLINE :@PublishedApidoesn't work for fun interfacesJavaScript
KT-79926Wrong export of interfaces with companions with ES ModulesKT-81424Kotlin/JS: Cannot Get / in a simple running applicationKT-80873KJS: Stdlib requires ES2020-compatible JS engine due to BigInt type literalNative
KT-79384K/N: Application Not Responding: Thread DeadlockTools. Gradle
KT-79047Gradle compileKotlin fails with configuration cacheKT-81148Publishing helpers in KGP are incompatible with Isolated ProjectsKT-80950KGP breaks configuration cache when signing plugin with GnuPG is appliedTools. Gradle. Multiplatform
KT-61127Remove scoped resolvable and intransitive DependenciesMetadata configurations used in the pre-IdeMultiplatformImport IDE importKT-81249Kotlin 2.2.20 broke KMP implementation of ParcelizeTools. Gradle. Native
KT-81510commonizeCInteropexception with 'kotlinNativeBundleConfiguration' not foundKT-81134Native: Gradle configuration failure likely related to Klibs cross-compilationKT-77732commonizeCInteropfailed with "Unresolved classifier: platform/posix/size_t"KT-80675Commonized cinterops between "test" compilations produce an import failureTools. Maven
KT-81218Kotlin Maven Plugin 2.2.20: Java classes not resolved with enabled incremental compilation without daemonTools. Wasm
KT-80582Multiple reloads when using webpack dev server after 2.2.20-Beta2v2.2.20: Kotlin 2.2.20Changelog
Analysis API
KT-78187Synthetic properties not to be shown as callablesKT-72525K2. red code and KIWA on new-lines in guarded when conditions (with parentheses)KT-74246KaVisibilityChecker.isVisible is inefficient with multiple calls on the same use-siteAnalysis API. Code Compilation
KT-78382K2 IR lowering error when interface extends interfaceKT-73201K2 IDE: Error while evaluating expressions with local classesKT-78164Evaluator: '@JvmName' annotations are not recognized in other modulesKT-76457K2 IDE / KMP Debugger: KISEWA “Cannot compile a common source without a JVM counterpart” on evaluating inline fun from common module inside jvmKT-73084K2 evaluator cannot resolve local variables standing at the closing braceAnalysis API. FIR
Performance Improvements
KT-76490Do not load ast during the contracts phase if no contracts presentKT-78132Do not check FirElementBuilder#tryGetFirWithoutBodyResolve optimization for already resolved declarationsFixes
KT-72227SOE from recursive value classKT-68977K2 IDE: Reference to companion object through typealias in a function call does not workKT-72357Implement partial body resolutionKT-76932Support context parameters on dangling modifier listKT-72407FirImplementationByDelegationWithDifferentGenericSignatureChecker: FirLazyExpression should be calculated before accessingKT-77602K2 / Analysis API: KAEWA “No fir element was found for KtParameter” on incorrect context()-callKT-77629K2: NPE: "org.jetbrains.kotlin.fir.java.declarations.FirJavaTypeParameter.performFirstRoundOfBoundsResolution"KT-76855Analysis API:KaType.asPsiTypereturnsnullfor a local inner class in dependent analysis testsKT-72718ImplicitReceiverValue.createSnapshot creates invalid FIR if receiver is smart-castedKT-76811Analysis API:resolveToFirSymbolfinds aFirPropertySymbolfor aKtScriptin dependent analysisKT-73586[Analysis API] AddlazyResolveToPhase(STATUS)before accessing modifiers of membersKT-71135AA: exception from sealed inheritors checker whenanalyzeCopyKT-75534K2 AA: "Containing declaration should present for nested declaration class KtNamedFunction" with dangling annotation on top-level anonymous functionKT-75687K2: local variable doesn't get to the do-while scopeKT-56543LL FIR: rework lazy transformers so transformers modify only declarations they suppose toAnalysis API. Infrastructure
KT-76809Analysis API: Dependent analysis tests frequently work with the original element instead of the copied elementAnalysis API. Light Classes
KT-78835Find usages of a light constructor from a class with an empty body finds usages of class as wellKT-78878K2. Method shown as unavailable in Java when@JvmExposeBoxedis applied (redundantly) at both class and method level in KotlinKT-78065Support "Expose boxed inline value classes" in Light ClassesKT-78076DLC: KotlinDeclarationInCompiledFileSearcher missed accessors if types are boxedKT-77569SLC: annotation missing from generated no-args constructorKT-75182K2 AA. False positive red code "Unresolved reference" to a Kotlin method in Java when Kotlin uses a value class with@JvmOverloadsKT-77564Constructor with JvmOverloads and value class shouldn't mark regular constructors privateKT-77505K2: find usages on java accessor methods do not detect kotlin property accessor usagesKT-76789Annotation resolve shouldn't search through non-class membersKT-76907Wrong equality between repeatable annotation and containerAnalysis API. Providers and Caches
KT-77578Analysis API: Performance degradation ofKaBaseResolutionScope.containsafter introduction of library restriction scopesKT-78640Analysis API: Remove "friend builtins provider" fromFirDeclarationForCompiledElementSearcherKT-74907Analysis API: Apply platform-based library module content restrictions consistentlyKT-77605AA: Leaking KaDanglingFileModule through IdeKotlinPackageProviderKT-62474Analysis API: Improve mergeability and performance of custom search scopesKT-77022Get rid of ExpectBuiltinPostProcessor workaroundKT-77248Delegation ofJavaModuleResolveris restricted toCliJavaModuleResolverKT-76850LLFirLibrarySession cannot be cast to LLFirResolvableModuleSessionKT-76952Analysis API:whenexhaustiveness analysis fails for sealed classes in dangling filesKT-72390Kotlin project full of red codeAnalysis API. Standalone
KT-78638Analysis API Standalone: Stdlib builtins are not indexed inSTUBSdeserialized declaration origin modeAnalysis API. Stubs and Decompilation
KT-77496Support HAS_MUST_USE_RETURN_VALUE metadata flags in FirStubBasedMemberDeserializerKT-77778Function receivers doesn't have annotationsKT-77777Receiver annotations shouldn't be present on typesKT-77538Support default property accessors with annotationsKT-77763Decompiled stubs miss inline modifier for property accessorsKT-77309Decompiled property from annotation constructor with default value should have a constant initializerKT-77168Prefer DataInputOutputUtil for serialization/deserializationKT-77117Flaky WRONG_ANNOTATION_TARGET diagnosticKT-76791Function signature types are deserialized inconsistentlyKT-76947Support functional types with context parametersAnalysis API. Surface
New Features
KT-73473Provide KaExpressionInformationProvider.isUsedAsResultOfLambdaKT-77278Implement psi-basedKaFirKotlinPropertyKtPropertyBasedSymbol#hasBackingFieldKT-70770KaLocalVariableSymbol: supportisLateInitPerformance Improvements
KT-78526Get rid of redundantcheckValidityfromwithPsiValidityAssertionFixes
KT-77674Analysis API: Redundant smart cast to the original typeKT-76577Guard KaFirStopWorldCacheCleaner from deadlocks via threads waitingKT-78820K2: ISE "FIR element class FirErrorExpressionImpl is not supported in constant evaluation" through RedundantValueArgumentInspectionKT-75057Analysis API: Reference to object through typealias in invoke operator call leads to original typeKT-79042Do not restore KaTypePointer if target kind has changedKT-72421AA: "KtReference.resolveToSymbols" returns empty list when ASSIGN_OPERATOR_AMBGUITY error is presentKT-63464AA: KtPsiTypeProvider#asPsiType doesn't substitute kotlin.UnitKT-75913K2: SymbolLightLazyAnnotation evaluates arguments and replaces them with constantsKT-78628K2. Setting Receiver=true in Change Signature produces parameter of regular function type receiver instead of extension function typeKT-78278ISE: FIR element "class org.jetbrains.kotlin.fir.expressions.impl.FirErrorResolvedQualifierImpl" is not supported in constant evaluation at org.jetbrains.uast.kotlin.internal.FirKotlinUastConstantEvaluator.evaluateKT-73184Analysis API: KaFunctionCall.argumentMapping is unexpectedly deparenthesisedKT-73327Cover all psi inputs with scope validity assertionsKT-78613PSI: add binary compatibility checksKT-74013Analysis API: Cover the API surface with@SubclassOptInRequiredannotationsKT-76614Move the parser and lexer to a separate moduleKT-78552KaFunctionValueParameteris not marked asKaLifetimeOwnerKT-71152Add back SubclassOptInRequired to classes in KaModule.ktKT-71876Support storing parameter names inKaFunctionTypeKT-77738AA: inconsistentKaType.allSupertypesregarding multiple iterationsKT-75358K2 AA, KaFirVisibilityChecker: private member of anonymous object is not visible inside itKT-73723K2 AA, KaFirVisibilityChecker: protected member of superclass is not visible from anonymous objectKT-78057[Analysis API, K2] Context parameters are not resolved in KDocKT-73758K2 Mode: "KaEvaluator.evaluate" does not work for simple arithmetic expressionsKT-72301K2 AA.PSI should present for declaration built by Kotlin codeon property access syntax of generic Java getter through Kotlin subclassKT-77730K2: Unable to get a light PSI for a nested annotation used with fully-qualified nameKT-73216K2: unresolvable references in type parametersKT-71794Analysis API: Types with errors have unresolved qualifiers in lambda parameters positionKT-65846Support parameter names in functional type renderingKT-76738K2 AA: rendering constructor of sealed class inserts protected modifierKT-77515KaTypeProvider#receiverTypeshould be more tolerant to an error codeKT-77333K2 AA: KaFirTypeProvider.getType: InvalidFirElementTypeException: For TYPE_REFERENCE with textI, unexpected element of type: FirSuperReceiverExpressionImpl foundKT-76044K2 AA: isFun is true for restored symbol of Java interface with several methodsKT-77264KaTypeProvider#typeshould be more tolerant to an error codeKT-77282KaPropertySymbol: supportisDelegatedPropertyfor librariesKT-77254K2 AA: expectedType doesn't provide anything for parameter default valueKT-74777KaVariableSymbol.hasBackingField returns incorrect result for librariesKT-77280RenameKaPropertyAccessorSymbol#isCustomtoisNotDefaultKT-77210Analysis API:scopeContextshows implicit receiver with a class instance in the class constructorKT-77196Clarify differences between KaPropertyAccessorSymbol#{isDefault, hasBody}KT-76580K2: No expected type for the second+ vararg argumentKT-76750K2. internal exception 'Unable to provide inlay hint' on typo in nested lambdasKT-73290Analysis API: Improve the architecture of content scopes and resolution scopesKT-73055Get rid of the deprecated Analysis API APIKT-70199K2: ConcurrentModificationException at FirCallCompleter$LambdaAnalyzerImpl.analyzeAndGetLambdaReturnArgumentsBackend. Wasm
New Features
KT-65721K/Wasm: stop unconditionally exporting any main function from the root packagePerformance Improvements
KT-70097Optimize shared primitive variables in Native and WasmFixes
KT-80106devServer in Kotlin/Wasm overwrites defaults, causing missing static pathsKT-80018K/Wasm: exceptions don't work properly in JavaScriptCore (vm inside Safari, WebKit)KT-66072K/Wasm: improve how exceptions work in JS interopKT-77897WasmJs: ClassCastException when using star-projection with nullable transformation in generic extension functionKT-71533K/Wasm + K2: no error on KClass::qualifiedName usagesKT-73931WASM: "RuntimeError: illegal cast" with nullable genericKT-65403[WASM] RuntimeError is thrown instead of ClassCastExceptionKT-79317[Wasm] Do not throw CCE for ExcludedFromCodegen declarationsKT-66085K/WASM: Runtime error is uncaught withcatch (e: Throwable)KT-78036K/Wasm: generate a message with "expected" and "actual" types in case of CCEKT-78384K/Wasm: Incorrect debug info of local declarations in inline function from another fileKT-72220Wasm: Unclear exception in case of missed dependencyKT-71691No trace on Wasm/JS if an error occurred in initializing global variables in a file with the main functionKT-67554[Wasm] Consider to have reference equals or/and equals for function referencesKT-71521K/Wasm: incorrect results on equality checks for capturing property referencesKT-71522K/Wasm: incorrect results on equality checks for function referencesKT-69570K/Wasm: JsExport with default parameter value compiles to invalid WasmKT-71517K/Wasm: KClass::qualifiedName for local classes and objects returns non-null valueKT-68309WASM: Anonymous class simpleName returns "" instead of nullKT-77272K/Wasm: Remove kotlin.wasm.internal.ClosureBox* classes from the standard libraryKT-66106Wasm: lambda was not invoked in test lambda2.ktKT-77855[Wasm] Improve virtual function calls speed for lambdasKT-77501Wasm: unsigned vararg compiles to invalid WasmKT-76775[Wasm] Inconsistent FP mod operationKT-77464Wasm: KType.toString() has simple names even with -Xwasm-kclass-fqnKT-77465Wasm: KTypeParamter printed without variance informationCompiler
New Features
KT-71768Enable -Xjvm-default=all-compatibility by default to generate JVM default interface methodsKT-78374Make indy lambda function name generation more consistentKT-45683Allow generics in contract type assertionsKT-27090Support contracts in getter and setter for top-level extension propertiesKT-76766Warning is missing for wrong subclass checkingKT-71244Incorporate existing@CheckReturnValueannotation(s) into Kotlin's unused return value checkerKT-73256Implementallmeta-target for annotationsKT-78792Report warning for redundant return in expression bodyKT-32313Support contracts for operator functionsKT-70722Implement better Kotlin warnings for value classes and JEP 390 (Warnings for Value-Based Classes)KT-65688Generate when-expressions over final classes via invokedynamic typeSwitch + tableswitch on JDK 21+KT-54344Trigger the unused expression warning for interpolated strings, even when the expression may have side effectsKT-74807Implement 'full' unused return value checker modeKT-77653K/N: an optimization pass to remove redundant type checksKT-64477Enhance KotlinLightParser to make it able to parse scriptsKT-74809Support unnamed local variablesKT-72941ANNOTATIONS_ON_BLOCK_LEVEL_EXPRESSION_ON_THE_SAME_LINE missing in K2KT-75061Support context-sensitive resolution in type positionPerformance Improvements
KT-77993Optimize old PSI/LightTree Kotlin parserKT-78672Consider having FirCallableSymbol.callableId null for local properties / parametersKT-77839K2: consider not creating CallableId for value parameters / variables / fieldsKT-74981Kotlin/Native: large binary size for iOS target in 2.1.0(LLVM16)KT-77838K2: consider replacing LinkedHashMap with HashMap inside scopes and scope sessionKT-76698Android Studio compose preview holds read lock 700ms for KaCompilerFacility APIKT-68677Kotlin compilation issue when using EnumMap and PairFixes
KT-79979K2: ClassCastException when overriding extension property with delegationKT-67146UPPER_BOUND_VIOLATEDmissing on implicit type argumentsKT-76477Kotlin/Native: fix compiler performance reporting in sources->klib and klibs->binaryKT-79866kotlinc 2.2.0 silently emits 'NonExistentClass' instead of reporting an errorKT-78666"Platform declaration clash" caused by indy lambda name generation which generates conflicting namesKT-80285IJ monorepo: broken compilation after 2.2.20-RC updateKT-79442"Multiple annotations of type kotlin.coroutines.jvm.internal.DebugMetadata": 2.2.0-Beta1 generates broken code with JVM default suspend methods in interfacesKT-78589"Class does not have member field" caused by delegation from a Java to Kotlin classKT-79816Java Interfaces implemented by delegation have non-null return checksKT-78097False positive NO_ELSE_IN_WHEN on sealed interface with negative is checkKT-77182A function in a file annotated with@file:MustUseReturnValue doesn't produce a warning when it is used from compiled codeKT-79085Adding-Xreturn-value-checker=fullto kotlinc causes "error: conflicting overloads"KT-75268K2: Implement the new compilation scheme for MPP (compiler part)KT-78843FIR tree: comments within String concatenation aren't visited in 2.2.0KT-77401[FIR]ParameterNameTypeAttribute.namedoesn't support@ParameterNamewith compile-time constant property argumentKT-73611Remove -Xextended-compiler-checks in favor of a deprecation cycleKT-79276Dexing fails with "Cannot read field X because is null" with 2.2.0KT-79781Missing MISSING_DEPENDENCY_CLASS when using type alias with inaccessible RHSKT-78621false-positive type mismatch error on value of nullable type as value of platform typeKT-79547"UnsupportedOperationException: Not supported" with inlining and value classesKT-52706Bad signature for generic value classes with substituted type parameterKT-79519Nested type alias is unreachable from another moduleKT-76839False-negative MISSING_DEPENDENCY_CLASS on parameter of data class constructorKT-78352False-positive IDENTITY_SENSITIVE_OPERATIONS_WITH_VALUE_TYPE when comparing with equality operator (==)KT-78815Symbol not found: __ZNSt3__117bad_function_callD1Everror on iOS 15.5 simulator in Xcode 16.3 after update to 2.2.0-Beta2KT-25341NOT_YET_SUPPORTED_IN_INLINE reported over anonymous object borderKT-77099'all' annotation target is not a soft keywordKT-76478FIR: Implement IDE-only checker for types exposed in inline functionKT-79355Failed to fix the problem of desugaredincwith new reverse implies returns contractKT-79277Implies returns contract doesn't affect the return type of the function if it is in the argument positionKT-79271Implies returns contract doesn't impact exhaustivenessKT-79218SMARTCAST_IMPOSSIBLE for top‑level extension‑property getter despite returnsNotNull contractKT-79220returnsNotNull contract ignored on extension function with nullable receiverKT-79354IllegalStateException: Debug metadata version mismatch. Expected: 1, got 2 with compiler 2.2.20-Beta1 and stdlib 2.2.0KT-78479IR lowering failed / Unexpected null argument for composable callKT-77986K2: False negative: "Local classes are not yet supported in inline functions"KT-79076'IllegalStateException: Cannot serialize error type: ERROR CLASS: Uninferred type' with Exposed column using recursive generic typeKT-78726Split runPsiToIr phase into runPsiToIr and runIrLinkerKT-77672K/N: come up with a fallback strategy for the casts optimization passKT-76365K2: Missing ABSTRACT_SUPER_CALLKT-76585K2: RETURN_IN_FUNCTION_WITH_EXPRESSION_BODY is not reported inside initializers of local variablesKT-79099K2: Do not inherit inline modifierKT-76902Omit type-use annotations from diagnosticsKT-64499Report error on overloading by order of context parametersKT-58988K2: Deprecate exposing package-private parameter of internal methodKT-77199OPT_IN_USAGE_ERROR is still absent when calling the enum primary constructorKT-72800K2: java.util.NoSuchElementException when introduce variableKT-79056Add experimental language version 2.5KT-17460Diagnostics and intention on suspend function that is overriden with non-suspend one.KT-78351Plugins: VIRTUAL_MEMBER_HIDDEN caused by FirSupertypeGenerationExtensionKT-78527No LESS_VISIBLE_TYPE_ACCESS_IN_INLINE_WARNING is reported when a private companion object is accessed via the class nameKT-79045FirExpectActualMatcherTransformer should not visit bodiesKT-74570K2: Linenumber for annotation on property is present in LVTKT-74569K2: Linenumber of annotation is present in constructor's LVTKT-64731K2: Annotation on inline function or inside inline function is hit by debuggerKT-77756Add experimental language version 2.4KT-78837linkReleaseFrameworkIosArm64: Compilation failed: An interface expected but was AnyKT-78945CONTRACT_NOT_ALLOWED is not reported for local operator functionsKT-78944ANNOTATION_IN_CONTRACT_ERROR is not reported for operators and property accessors with contractsKT-78943ERROR_IN_CONTRACT_DESCRIPTION is not reported for operators and property accessors with contractsKT-78932Contracts are allowed for open and overridden property accessorsKT-77203FIR: Consider adding destructured type to all COMPONENT_FUNCTION_* diagnosticsKT-76635Implement Data-Flow Based Exhaustiveness SupportKT-78805K2: False positive METHOD_OF_ANY_IMPLEMENTED_IN_INTERFACEKT-78651No need to report LESS_VISIBLE_TYPE_ACCESS_IN_INLINE_WARNING in noinline default value lambdaKT-78849K2: [Wasm, Fir2IR] Invalid smartcast on overloaded function callKT-78793Make feature AllowEagerSupertypeAccessibilityChecks experimentalKT-78736Missing [NOT_YET_SUPPORTED_IN_INLINE] diagnostics because of incorrect context updateKT-78324K2: False negative [INCONSISTENT_TYPE_PARAMETER_VALUES]KT-69975KDoc: cannot reference elements with names in backticksKT-78229KDoc: unable to reference a method with spaces in the nameKT-78047Render unnamed context parameters as _ instead ofKT-74621Debugger: AssertionError on evaluating two suspending callsKT-78784Improve deprecation warnings about KTLC-284KT-76826New inference error [NewConstraintError at Incorporate TypeVariable] caused by recursive generics and nullable expected typeKT-77685"IllegalArgumentException: Sequence contains more than one matching element"KT-78028"FirNamedFunctionSymbol" leaks to the error message about missing infix modifierKT-77245Add expression name to RETURN_VALUE_NOT_USED diagnosticKT-78071False-positive NO_ELSE_IN_WHEN after variable reassignmentKT-78068False-positive NO_ELSE_IN_WHEN after excluding enum value with inequality checkKT-71134Consider to get rid of CapturedTypeMarker.withNotNullProjection()KT-77131getValue/setValue can be declared with more than two/three parametersKT-78452Drop redundant frontend structures after fir2ir conversionKT-78458Don't populate PredicateBasedProvider if no lookup predicates are registeredKT-78440Lambda with an implicitly runtime-retained annotation is generated via invokedynamic with-Xindy-allow-annotated-lambdas=falseKT-77709Missing diagnostics of accessing less visible objects in inline functionKT-77577False positive exposed type warningsKT-77095FIR: Report warnings on exposure of references to invisible references in inline functionsKT-76981Move exposed type checker to regular checkersKT-78252ClassCastException whenArray<Void>used for compile-time vararg ofNothingKT-77713Context Parameters cause compiler generate r8 incompatible bytecodeKT-71854K2 IDE. False positive red code because of external annotation on a generic parameterKT-67335K2: Infers Int instead of Long for an ILTKT-76629K2 Mode: False positive RedundantVisibilityModifier inspection on private constructors in sealed classesKT-77728Drop controversial experimental checkersKT-78429K2: Property callable reference incorrectly smart-casted to intersection of property type and KPropertyKT-78509Renamed for override copy functions are cached in scope instead of sessionKT-17417Loops in delegation: no compilation error on non-abstract class with abstract method that never implementedKT-75033Split JvmBackendPipelinePhase to be able to provide a custom implementation of writeOutputsKT-75831K2: An extra "[VALUE_PARAMETER_WITHOUT_EXPLICIT_TYPE] An explicit type is required on a value parameter." for a missing parameterKT-78370All the [something]Assign operators on dynamic return Unit as a typeKT-73950K2 IDE / Kotlin Debugger: ISE “Fake override should have at least one overridden descriptor” on evaluation of local calss in presence of bystanderKT-78280Implement the sourcelessKtDiagnosticsKT-76543Migrate psi2ir sources to new IR parameter APIKT-77716Kotlin/Native and -Xseparate-kmp-compilation: "Compilation failed: Several functions kotlin/native/immutableBlobOf found"KT-76400Context-sensitive resolution doesn’t work in if-else condition passed as a function argumentKT-76606Enable 'Indy: Allow lambdas with annotations' by defaultKT-76739Dubious argument type mismatch "actual type is 'String', but 'String' was expected" caused by wrong number of type argumentsKT-78121Report warning on function type with multiple implicit values that's annotated with DSL markerKT-76872Anonymous context parameters are not visible in debuggerKT-74088Kotlin Debugger: CCE on evaluating private suspend functionKT-77301False positive Context Parameter resolution when using DslMarkerKT-78230Add more test cases to the holdsIn contractsKT-78111K2: Approximation of captured star projection in function type producesFunction1<Nothing?, Unit>in IRKT-77273K/N: Remove the kotlin.native.internal.Ref class from the standard libraryKT-73995JVM bytecode: Bad name for value class fieldKT-73013Kotlin Debugger: ISE “No mapping for symbol: VALUE_PARAMETER” on evaluating callable reference to local function with closure in itKT-77665K2: unresolved annotatation on local context parameter typeKT-77485Add constraints logging to inferenceKT-76504Find and deprecate actively used parts of K1 APIKT-75338K2 Mode: False positive "Redundant assignment" diagnostic on variable captured by local functionKT-77648K2: False negative DSL_SCOPE_VIOLATION when using named argument for lambda with annotated function typeKT-77355Report warning on overloading by a superset of another overload's context parametersKT-77354Report warning on overloading by a subtype of another overload's context parameterKT-78084Unify deprecation warning messagesKT-76776@MustUseReturnValuedoesn't affect nested scopesKT-77545@NoInferon receiver type leads to false positive type mismatch when generic type is specified explicitly and closest implicit receiver is of incorrect typeKT-76772@NoInferon a context parameter's type leads to a false-positive context argument ambiguity error regardless of the closest implicit values' types if there are multiple of them at the call siteKT-76771@NoInferon context parameter type leads to a false-positive type mismatch when generic type is specified explicitly and closest implicit value at the call site is of a mismatching typeKT-77156INITIALIZATION_BEFORE_DECLARATION is not reported in anonymous objectKT-78060UNRESOLVED_REFERENCE in fp-spaceKT-67555Debug metadata: map the Continuation label to the next executable location in fileKT-77723Refine the message for ArrayEqualityCanBeReplacedWithEquals checkerKT-75178Inline functions in conjunction with@JvmStaticmay result in bytecode errorsKT-77390Prototype lazy loading of stdlib symbols in NativeKT-77921False positive EXTENSION_SHADOWED_BY_MEMBER when member has context parametersKT-77895false-negative error on package directives with context parameter lists (even with context parameters disabled)KT-76767AMBIGUOUS_CONTEXT_ARGUMENT should report the name of the context parameter in addition to the typeKT-77444K2: False negative "Unchecked cast" with casting from MutableList to MutableListKT-63348K2: FIR2IR should properly pass expected typesKT-77627K2: consider getting rid of NEW_INFERENCE_ERRORKT-75833K2: Extra [ANNOTATION_ARGUMENT_MUST_BE_CONST] when passing regex-like strings as annotation argumentsKT-77547Native: add a check that the logic looking for stdlib-related bitcode is not used when compiling sources to a klibKT-77206RemovePARAMETER_NAME_CHANGED_ON_OVERRIDEsuppression in KMP lexersKT-77679Update syntax-api dependency in KMP Kotlin parserKT-77705K2: Consuming data class compiled with kotlin 1.0.5 breaks the K2 compilerKT-76583CCE: suspend lambda attempts to unbox value class parameter twice after lambda suspendedKT-76663KJS: KotlinNothingValueException caused by expression return since 2.1.20KT-75457Native: cache machinery uses stdlib cache with default runtime options even if custom runtime options are supplied when partial linkage is disabledKT-77563False-positive smart cast with captured local in init block causes NPEKT-77696ISE "couldn't find inline method" on kotlin/Result compiled by old Kotlin versionKT-76931K2: Annotation on do-while expression captures variables from inside the loopKT-77183Metadata: remove multi-field value class representationKT-77678Apply found optimization to Kotlin KMP parserKT-60127K2: Support scripts with LightTree-based raw FIR buildingKT-76615K2: "IllegalArgumentException: Inline class types should have the same representation: Lkotlin/UByte; != B" for mixed Java/Kotlin codeKT-77220Annotation with EXPRESSION is not allowed on lambdas in Kotlin 2.2.0KT-77656K/N: fix the super type for local delegated propertiesKT-75907Inference/PCLA: consider storing semi-fixed variables in inference sessionKT-77144Implement KMP Kotlin parserKT-77352Implement KMP Expression parserKT-76984SYNCHRONIZED_BLOCK_ON_JAVA_VALUE_BASED_CLASS isn't reported for primitive wrapper classes instantiated within the scopeKT-67471K2: "Unresolved reference" on incorrect term of FQ nameKT-77269[K/N] external calls checker crashes when used with cachesKT-77205Kotlin Debugger / Context Parameters: CCE “class FirPropertySymbol cannot be cast to class FirFunctionSymbol” on evaluating class propertyKT-74133FIR: use EmptyDeprecationsPerUseSite consistently in symbolsKT-77100java.lang.Void type is not ignorableKT-77491K2: No SUPERTYPE_IS_EXTENSION_FUNCTION_TYPE when using typealiasKT-77490Report error on contextual function type in supertypeKT-77431Functional type with a context is allowed as an upper-boundKT-77432Context isn't passed properly when functional type with a context is used as a type argumentKT-77417There is no TYPE_VARIANCE_CONFLICT_ERROR when 'out' type is used in contextKT-62631Improve expect-actual "checking" incompatibilities reportingKT-77481Support ExpectRefinement feature in HMPP compilation schemeKT-77268Make sure that -Xreturn-value-checker also enables -XX:UnnamedLocalVariablesKT-65719K1/K2: Nullness defaults from subclass unsoundly applied to method in superclassKT-53836In type-parameter declarations, recognize JSpecify annotations only on boundsKT-73658JSpecify@NonNullannotation on type-parameter bound prevents type-variable usages from being platform typesKT-77000Leave ForbidInferOfInvisibleTypeAsReifiedOrVararg as a warningKT-74084K2: False negative [NO_ELSE_IN_WHEN]KT-77451FirLazyResolveContractViolationException for test with overridden delegateKT-77397Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL when calling declaration with contextual function type in signatureKT-77137K2: Controversial behavior allows resolving annotation arguments on a companion inside itKT-77257Report compilation error when in generated JVM bytecode there is a need for CHECKCAST of the conditional expression to the inaccessible interfaceKT-77256Report compilation error when in generated JVM bytecode there is a need for CHECKCAST of the functional call result to the inaccessible interfaceKT-76356K2 evaluation fails on evaluating inline methods if there is an inline with AutoCloseableKT-73786Evaluator: cannot evaluate inline methods with reified parameterKT-77204Native: XCode strip command causes flaky testsKT-77351Implement KMP KDoc parserKT-76914compile-time failure on a type argument placeholder in a callable referenceKT-76597False negative opt-in required on delegated constructor callKT-76667Mark the class implementation of interface function with ACC_BRIDGE in the class fileKT-77181K2: a nested typealias annotation observes member declarations of the outer classKT-77180K2: Wrong scope for annotation arguments in the constructor headerKT-77287Try enforcingsource != nullwhenorigin == SourceKT-76135K2: drop pre-1.8 language features from compiler codeKT-77231Reflection: CCE on resuming coroutine after callSuspend if result is a generic inline class substituted with primitiveKT-77031Investigate the actual need of deduplicating provider in HMPP compilation schemeKT-77050Implement KMP KDoc lexerKT-77048Implement KMP Kotlin lexerKT-77044Consolidate, refine and update jFlex dependencyKT-77252It is impossible to declare an unnamed variable in a scriptKT-58137K2: ISE "Usage of default value argument for this annotation is not yet possible" when instantiating Kotlin annotation with default parameter from another moduleKT-77140Protect ConstraintSystemCompletionMode.UNTIL_FIRST_LAMBDA with opt-inKT-76898K2: ClassCastException when data class shadows supertype'scomponentXmethod with wrong typeKT-75695Bogus "Assigned value is never read" warning for prefix ++ operatorKT-76805Wrong NPE occurs when assigning synthetic properties with platform types in Kotlin 2.1.20KT-77078K2: anonymous object is wrongly allowed to implement interfaces by unsafe DelegationKT-72722Treat 'copy' calls of a data class as explicit constructor usagesKT-77149IllegalArgumentException: source must not be nullKT-76806K2: AIOOBE in FirEqualityCompatibilityCheckerKT-72391KJS: (a * b).toDouble_ygsx0s_k$ is not a functionKT-76950K2: "IllegalArgumentException: Inline class types should have the same representation: Lkotlin/UByte; != B" with nullable UByteKT-76043Native: NotImplementedError: Generation of stubs for class org.jetbrains.kotlin.ir.symbols.impl.IrFieldSymbolImpl is not supported yetKT-77126Transitive dependency mismatch between Kotlin Gradle Plugin and Scripting dependenciesKT-72831ANNOTATION_USED_AS_ANNOTATION_ARGUMENT missing in some cases in K2KT-73707Remove dependency on ":compiler:backend.jvm" from NativeKT-75499CheckerContext#{containingDeclaration, containingFile} in checkers should return symbolsKT-76548False positive TYPE_MISMATCH when resolving an expression with the expected type from the upper boundKT-76142K2:@RequiresOptInwarning does not display the custom message when using concatenated strings.KT-68699Kotlin Debugger: UPAE “lateinit property parent has not been initialized” on trying evaluate enumValues(), enumEntries() from inlined function with reified parameterKT-63267K2: incorrect line numbers after smart cast of an extension receiverKT-71309Kotlin Debugger: UnsupportedOperationException on calling method with reified type parameterKT-74912K2: Investigate irrelevant ARGUMENT_TYPE_MISMATCH on top-level lambdasKT-74657K2: Linenumber for annotation on local variable is present in LVTKT-76749NONE_APPLICABLE message is unreadable for stdlib context functionKT-74932Investigate false-negative ARGUMENT_TYPE_MISMATCH on a nested anonymous functionKT-74545Redundant TYPE_MISMATCH in variable initializer with callKT-76774K2: Simplify ResolutionMode.WithExpectedType contractsKT-76689Unnamed local variable with type and without initializer is allowedKT-76746ClassCastException: class org.jetbrains.kotlin.fir.types.impl.FirUserTypeRefImpl cannot be cast to classKT-76754K2: Compiler doesn't check annotations on array literals (as annotation arguments)KT-76674The function isn't called from unnamed local variable initializerKT-75553MISSING_DEPENDENCY_SUPERCLASSandMISSING_DEPENDENCY_SUPERCLASS_WARNINGis reported at the same time on the same elementKT-76345Enhance variable fixationKT-73348AssertionError from isCompiledToJvmDefault on super call of suspend function with composable function parameterKT-72305K2: Report error when using synthetic properties in case of mapped collectionsKT-73527Prohibit (via a deprecation warning) accessing nested class through generic outer classKT-59886K2: Disappeared ERROR_IN_CONTRACT_DESCRIPTIONKT-61227Definitely non-nullable types cause "Any was expected" for@NullableparameterKT-57911K2: Contracts are not inherited by substitution overridesKT-47398'null' EnhancedNullability value in String-based 'when' might produce different behavior depending on whether 'when' is "optimized" or notCompose compiler
CMP-7505IrLinkageError: Function can not be called: No function found for symbolb/432262806Fix target description lookupb/436870733Prevent lambda memoization in local classes inside a composableb/432485982Fix AbstractMethodError when overriding function with default parametersb/432262806Use classId as FirApplierInferencer tokensb/400371006Gate default parameters behind language versionsb/245673006Specify fqName for classes and functions in build metricsb/254577243Avoid printing complex expressions in compiler metricsb/394891628Allow specifying target version of Compose runtimeb/424454512Recreate FirApplierInferencer for each checkb/417406922Restrict references to@Composablepropertiesb/282135108,b/349866442[Compose] Enable applier checking when using FIRb/307592552Add BigInteger and BigDecimal to the list of known stable classesb/414547195Unwrap type casts when inferring@Composablecall argumentsIR. Inlining
New Features
KT-70360KLIBs: Uniformly handletypeOf()calls at 1st/2nd stages of compilationFixes
KT-79002[Inliner][Native][PL] Native backend fails for inline function that instantiates a class that was compiled implementing two interfaces, which turned into abstract classesKT-78137Review & enable PL tests with enabled IR inlinerKT-72464[Native][JS][Wasm] Non-local return through suspend conversion breaks the IR inlinerKT-69941RewriteDumpSyntheticAccessorslowering to test handler after moving common Native/JS prefix to KLIB compilationKT-78245Synthetic Accessors incorrectly copies default valuesKT-76236IncludeNativeInliningFacadeandJsIrInliningFacadein all Native & JS test runnersKT-76512Avoid usingoriginalFunctioninsideFunctionInliningKT-69457[references] IR Inliner: References to inline functions are not inlinedKT-47521Native & JS: Recursive inline fun calls -> StackOverflowErrorKT-76425Do not store signatures of preprocessed inline functions in KLIBsKT-76763[Inliner] Don't use attributeOwnerId to pass info from Inliner to non-JVM backendsKT-77102[Inliner] Expression uses unlinked type parameter symbolKT-76145Enhance error message about poisoned KLIBs in KLIB-based compilersKT-77079IR: Report warnings on exposure of references to invisible declarations in inline functionsKT-69797[references] Accessors for private function/constructor/property references are not generatedKT-76454Investigate erasure of class type parameters during inlinerKT-72593[K/N] Add NativeIrInliningFacade to CrossCompilationIdentityTestKT-70969IR Inliner: Ensure that common prefix at 1st phase does not affect KLIB signaturesKT-75937[IR Inliner] Umbrella for failing tests due to public inlinerKT-77295Improve Diagnostic Message Formatting for Private API Exposure in Inline FunctionsKT-77047Ir Ininler: crash on fake override in private class from more visible classKT-77336[references] Synthetic accessor test for private top-level function accessed via reference fails withNo function found for symbolKT-76761[Inliner] non-JVM IR Inliner incorrectly uses K/JVM-specific codeKT-76712[Inliner] No function found for symbol '/|?'KT-76711[Inliner] Reference to function 'privateMethod' can not be evaluatedIR. Tree
KT-77508K/JS and K/Native CompilationException Wrong number of parameters in wrapperKT-78978PL tests: Dropadjust*forLazyIr()hackKT-76813IR validator: not all symbols/references are visitedKT-77596RefinereuseExistingSignaturesForSymbolssetting in IR serializerKT-76723IR validator: Check visibilities of annotationsKT-76405Visit annotations in IrTypeVisitor and IrTreeSymbolsVisitorKT-78033[PL] MergeIrUnimplementedOverridesStrategytoPartiallyLinkedIrTreePatcherJVM. Reflection
KT-77882kotlin-reflect: KParameter.name returns "" instead of null for anonymous context parametersKT-77879kotlin-reflect: toString overrides of KCallable implementations do not render context parametersKT-74529Context parameters support in reflectionKT-52170Reflection: typeOf<Array> gives classifier LongArrayKT-77663Reflection: java.util.ServiceConfigurationError: "module kotlin.reflect does not declareuses" when using kotlin-reflect in modular modeJavaScript
New Features
KT-79222K/JS: Allow using Long in exported declarationsKT-79394Add the possibility to write common external declarations between JS and WasmJS targetsKT-70486K/JS: exported exception types should extend ErrorKT-19016Define accessors as enumerablePerformance Improvements
KT-57128KJS: Use BigInt to represent Long values in ES6 modeKT-54689KJS: Data class equals less efficient than manually written versionFixes
KT-69297Deprecate referencing inlineable lambdas injs()callsKT-77620Fix failing IC tests on WindowsKT-77372KJS: NullPointerException at JsIntrinsics$JsReflectionSymbolsKT-78316KJS: List is not exported to TypeScript declaration if wrapped in PromiseKT-79644BigInt enabled for ES 2015 despite being an ES 2020 featureKT-79089KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode testsKT-79916K/JS: "Uncaught TypeError" when using 'Xes-long-as-bigint' in compose-htmlKT-79050KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79977KJS: Long.rotateLeft returns incorrect result when BigInts are enabledKT-76093Support new callable reference nodes in partial linkage in Kotlin/JSKT-78073K/JS: KProperty from local delegate changes after another delegate is invokedKT-52230KSJ IR: Applying identity equality operator to Longs always returns falseKT-6675KotlinJS: toInt() on external Long throws errorKT-79184K/JS: Further intrinsify BigInt-backed Long operationsKT-78701Js and Wasm: enumValueOf does not include invalid value into an exception messageKT-55256KJS: non-exported subclass with a no-parameter function overload doesn't compileKT-76034passProcessArgvToMainFunction contains the node path and script pathKT-66091KJS, WASM:AssertionError: Illegal value: <T>in test nonReified_equality.ktKT-78169KJS: [NON_EXPORTABLE_TYPE] with@JsExportclass if@JsStaticcompanion method returns an out typeKT-57192KJS: "Exported declaration uses non-exportable return type" caused by@JsExportPromise with Unit typeKT-61183KJS: "AssertionError: Assertion failed" from JsSuspendFunctionsLoweringKT-59326KJS / IR: invalid code generated when using constructor parameter nameddefaultKT-70295KLIB stdlib: Unify intrinsics for boxing captured variables in lambdas across non-JVM backendsKT-77021CompilationException: Encountered a local class not previously collected on inner classes inside anonymous objectsKT-77320KJS: Big.js times() is compiled to multiply (*) operatorKT-77430K/JS: Remove sharedBox* intrinsics from the standard libraryKT-73267KJS: IC: "FileNotFoundException": Build failures with Kotlin 2.1-RC and RC2KT-76912KJS:@JsStaticcan't be used for companion objects implementing external interfacesKT-77271KJS / Serialization: "Cannot set property message of Error which has only a getter"KT-77242Kotlin/JS & Kotlin/Wasm backends: Artificially apply reverse topo-order after IR linkageKT-77649KJS: es-arrow-functions requires explicit opt-in when target is ES2015KT-76235[JS] Extra invalid linetmp_0.tmp00__1 = Options;in testSuspendFunction()KT-76234[JS] Extra invalid lineParentin testNested()KT-76233[JS] Extra invalid import line in testJsQualifier()KT-77190Migrate JS diagnostic tests to the new CLI-based test facades (1st phase only)KT-77418KJS: cannot debug with whole-program granularityKT-77371[K/N][K/JS][K/Wasm] Unify visibility rules for generated default argument stubsKT-77148KJS: "Uncaught TypeError: (intermediate value).l(...).m is not a function" during production build runKT-77193Migrate JS irText tests to the new CLI-based test facades (1st phase only)KT-77192Migrate JS ABI reader tests to the new CLI-based test facades (1st phase only)KT-77187Migrate JS box tests to the new CLI-based test facades (1st phase only)KT-77027Migrate 1st phase facades to the phased CLI infrastructure in JS testsKT-69591KJS / d.ts: Wrong type of SerializerFactory for abstract classesKT-76027KJS: "ReferenceError: entries is not defined": Accessing entries of an enum arbitrarily fails with println()KT-76232Suspend contextual function with extension receiver results in wrong values at runtime in JSKT-42305KJS / IR: "Class constructor is marked as private"@JsExportproduces wrong TS code for sealed classesKT-52563KJS / IR: Invalid TypeScript generated for class extending base class with private constructorKlibs
New Features
KT-78699Compiler (JS, Wasm): warn about incompatible kotlin-test/compiler pairKT-78700Compiler (JS, Wasm): Consider making diagnostics for incompatible kotlin-stdlib/compiler and kotlin-test/compiler pairs errors instead of warningsKT-74815KLIB resolver can't consume metadata klibs between source sets when abi_versions divergeKT-68322Compiler (JS, Wasm): warn about incompatible Kotlin stdlib/compiler pairFixes
KT-78168K/N: "IndexOutOfBoundsException: Index 3 out of bounds for length 3" for iOS build with Kotlin 2.2.0-RC2KT-75766PL: Error on building fake override with multiple overridden members with unbound symbols in return typeKT-75757PL: Error on building fake overrides with unbound symbols in value parametersKT-76094Support new callable reference nodes in partial linkage in Kotlin/WasmKT-78771KLIBs: ImprovezipDirAs()function that is used to produce KLIB (ZIP) archivesKT-75980[Klib] Reduce serialized size of IrFileEntries for sparse usage of another source filesKT-78349[Tests] Enable Partial Linkage in all testsKT-76827KLIB cross-compilation tests: Don't use IR hashes and metadata hashes in test dataKT-76266Move trigger of :tools:binary-compatibility-validator:check to native/native.tests/klib-ir-inlinerKT-76725KLIB ABI export in older version: Restore legacy directoriesKT-76061Add option for suppress warning of missing no-existent transitive klib dependenciesKT-76471Partial linkage: add an attribute if a class is invalidKT-75192KLIB reader tends to extract files from the KLIB archive to a temporary directory even when this is not neededLanguage Design
KT-78866Warn implicit receiver shadowed by context parameterKT-54363Allow using reified types for catch parametersKT-32993Contract to specify that a function parameter is always true inside lambdaKT-79308Ability to actualize empty interfaces as AnyKT-8889Contracts: if a given function parameter is not null, the result is not nullKT-22786Returns are not allowed for expression-body functions and are allowed when an inline lambda is addedKT-77836Support using context parameter of a@RestrictsSuspensiontype as the "restricted coroutine scope"KT-77823Context-sensitive resolution doesn't work for subtypes of sealed typesKT-75977False positive unresolved_reference when resolving nested member after a type checkKT-73557Allow refining expect declarations for platform groupsLibraries
New Features
KT-76389Provideupdatefunctions for common atomicsKT-78581Add the KClass.isInterface property to Kotlin/JS stdlibKT-34132Contract for ClosedRange.contains(T?) operatorKT-73853Provide vararg constructors for Atomic ArraysFixes
KT-71628Review deprecations in stdlib for 2.1KT-76773stdlib: contextOf's type argument can be inferred via contextOf's context argumentKT-79489Generate Stdlib API reference for webMain source setKT-79080Annotate WasmImport and WasmExport as experimental APIKT-79121K/Wasm annotate JS-interop API as experimentalKT-78710kotlin.wasm and kotlin.wasm.unsafe packages are missing descriptionKT-78709Wasm: KClass.qualifiedName KDoc should reflect the behavior on the targetKT-78704CharSequence.subSequence and String.substring behavior with invalid indices differs between targetsKT-78705Float.sign and Double.sign behavior for negative zero is not documentedKT-74543Support for context parameters in kotlinx-metadataKT-78340String.startsWith KDoc declares invalid exception conditionKT-78242Move IrLinkageError to the common non-JVM part of the standard libraryKT-67819Document collection interfaces contractsNative
KT-79075Stuck on Kotlin_getSourceInfo_core_symbolicationKT-76178LLVM Update: symbol '__ZnwmSt19__type_descriptor_t' missingKT-78959Xcode 26: fix GC stress testsKT-78734Finish runtime crash dump generationKT-74662Consider providing a way to enable stack canaries for Kotlin/Native binariesKT-77378[macos] Loading libraries with non resolved paths runs XProtectServiceKT-61549Kotlin/Native: remove kotlin-native/Interop/JsRuntimeKT-76563LLVM Update: numerous "was built for newer 'macOS' version" warningsNative. Build Infrastructure
KT-77349Kotlin/Native: default cache for stdlib is unusedNative. C and ObjC Import
KT-79571Xcode 26 beta 4: CInteropKT39120TestGenerated.testForwardEnum failedKT-71400Fix disabled -fmodules testing for stdarg.hNative. ObjC Export
New Features
KT-77488[ObjCExport] Add explicit ObjCBlock parameter name in objc exportKT-76974Include conflicting element in objc export warningsKT-76338Native, ObjCExport: Replace name mangling of special method familiesFixes
KT-55648Native: produce smaller binariesKT-78447[ObjCExport] Add missing ERROR constructors, align with K1KT-78034ObjCExport: primitive type extension translated as static methodKT-77781ObjCExport: support@ObjCNamefor function parameters and receiver parametersKT-77592KMP plugin uses incorrect Swift name from ObjCName annotationKT-77625ObjCExport: ObjCName annotation adds kotlin name swift_nameKT-77484KotlinConf app: Invalid identifiers inObjCHeader.renderKT-77500IllegalStateExceptionduring generating ObjC header stubsNative. Runtime
KT-79152Native: unexpected thread state in kotlin::to_stringNative. Runtime. Memory
KT-78925Crash SIGABRT on Apple Watch after updating Kotlin to 2.2.0KT-76851Kotlin/Native: GC scheduler MutatorAssists requestAssists and completeEpoch issueKT-63143Kotlin/Native: execute Cleaners on the finalizer threadNative. Swift Export
KT-79105ConcurrentModificationException During Swift Export Caused by Usage of ArrayKT-79227Swift Export: Fix First Release IssuesKT-78947Implement FUS for Swift exportKT-79521'_CoroutineScope' is inaccessible due to 'internal' protection levelKT-79181Swift Export Fails When Using T: Comparable Generic Constraint in Kotlin ClassesKT-77650Swift export execution tests fail with caches enabledKT-77634K/N: swift export tests started failing after hyper-existentialsKT-77290Transitive Export on swift export can duplicate declarationsTools. Build Tools API
KT-78415Add a tool for performance reports analysingTools. CLI
New Features
KT-75812Basic DSL for compiler arguments representationFixes
KT-78318Unresolved reference when compiling kotlin/JS project on fresh masterKT-75968Set proper lifecycle for all existing compiler argumentsKT-77445UNRESOLVED_REFERENCE when importing classes from kotlin-stdlibKT-77030Implement setup of HMPP sessions for KLib-based compilersKT-78578Support for placeholder (*) and directory in-Xdump-perfKT-78129Compiler cannot parse -Xfragment-dependency with a comma in the pathKT-76828Warning doesn't exist error with -Xwarning-level when the source file has no codeKT-76957Incorrect error message when severity is set with -Xsuppress-warning and -Xwarning-level for the same diagnosticKT-76829UnsupportedOperationException when reenabling a taking place warning with -Xwarning-levelKT-76111kotlinc warns about org.fusesource.jansi.internal.JansiLoader call to System.loadKT-76447Remove -Xjps compiler argumentTools. Compiler Plugin API
KT-78279Make the DiagnosticReporter default way for reporting in IR pluginsKT-77157Cannot create a symbol pointer for local class generated by FirFunctionCallRefinementExtensionTools. Compiler Plugins
New Features
KT-78038Make jvm-abi-gen compiler plugin output classloader-friendlyKT-77339Update kotlin dataframe dependency to 1.0.0-dev-6925Fixes
KT-78969[DataFrame] Provide source elements for plugin-generated classesKT-75265PowerAssert: the result of invoke is displayed at the same level as value that can be confusingKT-78490"AssertionError: SyntheticAccessorLowering should not attempt to modify other files" when calling protected open composable with default argumentKT-77626K2: AssertionError: FUN LOCAL_FUNCTION_FOR_LAMBDA has no continuationKT-78671[DataFrame] Support type parameter types in DataSchema to fix evaluate expressionKT-78439DataFrame compiler plugin: Unresolved reference error in REPLKT-75876PowerAssert: don't display results for assertion operatorKT-75514[JS][Native] Add IrPreSerializationLoweringFacade to Atomicfu test runnersKT-77719Remove suppress INVISIBLE_REFERENCE from DataFrame pluginKT-77691Kotlin DataFrame plugin: IR and FIR anonymous functions have inconsistent receiversKT-77455kotlin-dataframe plugin throws NoClassDefFoundError in IDEKT-77437Kotlin DataFrame: Add configuration key to disable top level properties generatorKT-74366Delete kotlin-android-extensions compiler pluginKT-73364Migrate atomicfu sources to new IR parameter APITools. Compiler plugins. Serialization
KT-79695Serialization does not exclude field-less properties in 2.2.20-Beta2KT-73365Migrate kotlinx-serialization sources to new IR parameter APITools. Gradle
New Features
KT-76421Stabilize klib cross-compilation on different platformsKT-77107Introduce Kotlin ecosystem pluginFixes
KT-80172Error message changes depending on the order of applying 'org.jetbrains.kotlin.android' and 'AGP' 9.0+ with built-in Kotlin pluginKT-77546Implement basic support for HMPP compilation scheme support in KGPKT-79034Automatically disable cross compilation if it's not supported on the hostKT-79408A lot of errors files are created when compile KotlinKT-77785Add -fmodules option to CocoaPod dependency by defaultKT-75921Make Swift Export available by defaultKT-63383Add compiler performance metrics to Native build reportsKT-77023Support creating KotlinJvmAndroidCompilation in KotlinBaseApiPluginKT-74420Migrate kotlin-parcelize away from AGP's deprecated Variant APIKT-78233Add ExperimentalFeatureWarning unique idKT-67992Cleanup deprecated code required for KSP1KT-72341Remove 'kotlin-android-extensions' pluginKT-67291Enable Project Isolation AND/OR Configuration Cache mode for Gradle Integration testsKT-78325Kotlin ecosystem plugin rejects compatible Gradle patch version when DCL is enabledKT-76353Handle migration to stable -jvm-default in KGP: replace deprecated option and suppress warningsKT-76797KGP: StdlibDependencyManagementKt.configureStdlibVersionAlignment() triggering eager configuration realizationKT-77163Migrate Swift Export IT to injectionsKT-76282Add missing Android Gradle plugin versions in testsKT-77011Update build regression benchmarks for 2.2.0 releaseKT-76138Compile against Gradle API 8.14KT-76139Run integration tests against Gradle 8.14KT-77035A compiler diagnostic isn't reported when its severity is set to warning with GradleKT-76951'distribution-base' plugin is only applied in Gradle 8.13KT-73142Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilderKT-76740Use Problems API for warning introduced in KT-75808KT-65271Gradle: "Mutating dependency DefaultExternalModuleDependency after it has been finalized has been deprecated " with gradle 8.6-rc-3Tools. Gradle. Cocoapods
KT-76035Allow extra command line arguments in PodBuildTaskKT-78387Kotlin Cocoapods Gradle Plugin is not compatible with Gradle isolated projectsKT-79429K/N: Cocoapods: IllegalArgumentException: "cinterop doesn't support having headers in -fmodules mode" with 2.2.20-Beta1 if explicitly not specify false for 'useClangModules'Tools. Gradle. Compiler plugins
KT-66728Deprecatekapt.use.k2propertyTools. Gradle. JS
New Features
KT-75480Add shared source set for js and wasmJs targetKT-77073generateTypeScriptDefinitions() does not add generated .d.ts file to package.json automaticallyFixes
KT-77319KJS / Gradle: generateTypeScriptDefinitions() generates wrong file extension when outputting ES modulesKT-79921Web Tooling Gradle API does not respect webpack reconfigurationKT-76996Wasm: js tasks triggers wasm subtasksKT-79237Upgrade NPM dependencies versionsKT-79188Pre-generated accessors aren't available for webMain / webTest source setsKT-78504[2.2.0-RC3] NPM Tasks in 2.2 RCs produce broken/unusable build cache entriesKT-77443NPE: "NullPointerException: Cannot invoke org.gradle.api.tasks.TaskProvider.flatMap(org.gradle.api.Transformer)": ExecutableWasm.optimizeTask is accessed before initializationKT-76987JS, Wasm: Upgrade NPM dependenciesKT-77119KJS: Gradle: Setting custom environment variables in KotlinJsTest tasks no longer worksKT-74735KGP uses Gradle internalCompositeProjectComponentArtifactMetadataTools. Gradle. Multiplatform
New Features
KT-69790Report human-readable error when declared dependency doesn't support required target typesKT-76446Add kotlin-level dependency block to work the same way as commonMain/commonTest dependencies blocksFixes
KT-78297FileNotFoundException in generateMetadataFile task if non-packed=falseKT-62294kotlin-parcelize plugin does not support the new android kotlin multiplatform pluginKT-77404The kotlin-stdlib and annotations are missing from commonTest dependencies with 2.2.0-Beta1KT-79559AGP complains about configurations resolved at configuration time due to KMP partially resolved dependencies diagnosticKT-78993The value for property '*' property 'dependencies' is final and cannot be changed any furtherKT-77843KGP fails with Gradle 9 onProjectDependency.getDependencyProject()KT-79315Early task materialization with cross-project configuration breaks configuration due to KMP partial resolution checkerKT-77466KMP - testFixturesApi and similar configurations do not affect jvmTestFixtures source setKT-78433Gradle: add tracking of the new KMP compilation scheme to FUSKT-78431Gradle: in-process metadata compiler uses deprecated K2MetadataCompilerKT-77414KMP dependencies in detached source sets cause IDE resolution to write error logs: "kotlin-project-structure-metadata.json (No such file or directory)"KT-76200TestModuleProperties.productionModuleName for JVM module isn't present with 2.1.20-RCTools. Gradle. Native
KT-51301Remove ability to use Native non-embeddable compiler jar in Gradle pluginKT-74864Enable exporting KDocs by default to ObjCKT-77977"Unknown hardware platform: riscv64" on JVM project buildKT-78838Add default 3G max heap size for the commonizer JVM processKT-68256Reduce commonizer max heap size to default 3g and allow users to configure itKT-77067Kotlin Gradle plugin with the configuration cache passes all platform libraries to the compiler when compiling a binary for the first timeTools. Gradle. Swift Export
KT-79554Swift Export status diagnostic is produced even if swift export is not configuredKT-78385Swift Export is not compatible with Gradle isolated projectsKT-79524NoSuchMethodError: 'java.lang.String org.gradle.api.artifacts.ProjectDependency.getPath() for swift export with dependency export fro gradle < 8.11Tools. Incremental Compile
KT-60653IC does not handle changes in inline functions objects/lambdas correctlyKT-78807Changing ABI fingerprint on non-ABI changes when lambda passed to inlined functionKT-69075Incremental compilation: smartcast is impossible on field with@JvmNameTools. JPS
KT-77347Support file-less compatible IC approachKT-78444Clean up JPS code baseKT-75460Adding@PurelyImplementsannotation to a List does not cause incremental recompile of affected filesKT-50594Fix org.jetbrains.kotlin.arguments.CompilerArgumentsContentProspectorTestTools. Kapt
KT-79138K2: KAPT Java Stub Gen:Unresolved referencewith@kotlin.Metadata in Java in 2.2.0KT-79641Kapt: too much information is printed in verbose modeKT-79136K2 kapt: unresolved nested class references in annotation arguments are generated without outer class namesKT-79133K2 kapt: class literal with typealias is not expandedKT-77853K2 KAPT: backend internal error: exception during IR fake override builderKT-73322MigrateFirKaptAnalysisHandlerExtensioncompilation pipeline to the phased structureTools. Maven
KT-77587Maven: Introduce Kotlin daemon support and make it enabled by defaultKT-63688Remove JS-related stuff from kotlin-maven-pluginTools. Maven. Compiler plugins
KT-77511Add maven plugin for Kotlin DataFrame pluginTools. REPL
KT-78755[K2 Repl] Redeclaring variables does not workKT-75632Contunue deprecation of the REPL built intokotlincKT-77470[K2 Repl] Lazy Properties crash code generationKT-76507[K2 Repl] Delegated properties are not visible in the next snippetKT-76508[K2 Repl] Annotations on property accessors are not resolvedKT-75672[K2 Repl] Serialization plugin crashes compiler backendTools. Scripts
KT-78378"Explain" feature of the kotlin script fails on hidden variablesTools. Statistics (FUS)
KT-79455[FUS] Collect KSP plugin versionKT-77755[FUS Pipeline] Fus file formatKT-77995Do not collect FUS metrics on TeamCityTools. Wasm
KT-76842K/Wasm: serve project sources in *DevRun tasks by defaultKT-78921K/Wasm: don't generate empty yarn.lock fileKT-75714Wasm: Move tooling NPM dependencies outside user projectKT-70013.gradle/yarn and .gradle/node are part of Gradle configuration cacheKT-76838K/Wasm: No possible to set downloadBaseUrl to null for D8 and BinaryenKT-76948Wasm: Rename kotlinBinaryenSetup and kotlinD8Setupv2.2.10: Kotlin 2.2.10Changelog
Compiler
KT-79276Dexing 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-78815Symbol not found: __ZNSt3__117bad_function_callD1Everror on iOS 15.5 simulator in Xcode 16.3 after update to 2.2.0-Beta2KT-78501K2: Missing [ABSTRACT_SUPER_CALL] diagnostics for delegated interface method leads to AssertionError: isCompiledToJvmDefault during IR loweringKT-78479IR lowering failed / Unexpected null argument for composable callKT-76477Kotlin/Native: fix compiler performance reporting in sources->klib and klibs->binaryKT-78736Missing [NOT_YET_SUPPORTED_IN_INLINE] diagnostics because of incorrect context updateKT-77685"IllegalArgumentException: Sequence contains more than one matching element"KT-76365K2: Missing ABSTRACT_SUPER_CALLKT-78352False-positive IDENTITY_SENSITIVE_OPERATIONS_WITH_VALUE_TYPE when comparing with equality operator (==)Compose compiler
KT-78479Ensure that default transform affects functions entered through a callKT-78490Fix visibility for default wrappers of protected methodsb/408492167Emit parameter names in Compose source informationJavaScript
KT-79050KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79089KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode testsNative
KT-79075Stuck on Kotlin_getSourceInfo_core_symbolicationKT-76178LLVM Update: symbol '__ZnwmSt19__type_descriptor_t' missingNative. Runtime. Memory
KT-78925Crash SIGABRT on Apple Watch after updating Kotlin to 2.2.0Tools. CLI
KT-77445UNRESOLVED_REFERENCE when importing classes from kotlin-stdlibKT-78263java.lang.NoClassDefFoundError: Could not initialize class com.intellij.psi.impl.PsiSubstitutorImplKT-78318Unresolved reference when compiling kotlin/JS project on fresh masterTools. Compiler Plugins
KT-78490"AssertionError: SyntheticAccessorLowering should not attempt to modify other files" when calling protected open composable with default argumentKT-78038Make jvm-abi-gen compiler plugin output classloader-friendlyTools. Gradle
KT-77023Support creating KotlinJvmAndroidCompilation in KotlinBaseApiPluginTools. Gradle. JS
KT-78504[2.2.0-RC3] NPM Tasks in 2.2 RCs produce broken/unusable build cache entriesTools. Gradle. Multiplatform
KT-77466KMP - testFixturesApi and similar configurations do not affect jvmTestFixtures source setKT-68646Compose extension's metrics/reports dir should use subdirs based on targetTools. Gradle. Native
KT-77977"Unknown hardware platform: riscv64" on JVM project buildTools. Incremental Compile
KT-78807Changing ABI fingerprint on non-ABI changes when lambda passed to inlined functionTools. Kapt
KT-77853K2 KAPT: backend internal error: exception during IR fake override builderKT-79138K2: KAPT Java Stub Gen:Unresolved referencewith@kotlin.Metadata in Java in 2.2.0v2.2.0: Kotlin 2.2.0Changelog
Analysis API
KT-73337Migrate analysis sources to new IR parameter APIKT-75880K2 Mode: Typealias reference resolves to the underlying class in KMP projectKT-74246KaVisibilityChecker.isVisible is inefficient with multiple calls on the same use-siteKT-57733Analysis API: Use optimizedModuleWithDependenciesScopes in combined symbol providersKT-69535Redesign 'containingSymbol'KT-69950Analysis API: IntroduceisSubtypeOf(ClassId)KT-68393Analysis API: RenameKaClassLikeSymbol. classIdIfNonLocaltoclassIdKT-62924Analysis API: rename KtCallableSymbol.callableIdIfNonLocal -> callableIdAnalysis API. Code Compilation
KT-75502K2: IDEA hangs when evaluating inside kotlin-stdlib modules in the Kotlin projectKT-73077Evaluation of inline functions is broken inside Kotlin project and Amper module in Idea sourcesKT-73936K2: CyclicInlineDependencyException: Inline functions have a cyclic dependency in evaluatorKT-74582InterpreterMethodNotFoundError when trying to evaluate simple expressions after recent fixesKT-74524Compilation exception with incorrect JvmName annotation argumentsKT-74443Compilation peer collector ignores inline property accessorsAnalysis API. FIR
New Features
KT-73493Support context parametersPerformance Improvements
KT-75790Experiment with increasing DEFAULT_LOCKING_INTERVAL timeKT-72159LLFirCompilerRequiredAnnotationsTargetResolver: consider rewriting it to use honest jumping locksFixes
KT-76331Cleanup FileStructureElement for classesKT-73117K2 AA: Exception "Setter is not found" when val has a setter without bodyKT-76540K2: Missing library dependency on Android SDK from androidx.activity-1.8.2 causes LiveEdit failuresKT-73266K2. "Declaration should have non-local container" with unclosed annotation on top-level functionKT-76432JavaClassUseSiteMemberScope: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImplKT-76217K2 AA: "No fir element was found for KtParameter" with multiple context parameter listsKT-74740Highlighting is broken after the built-in serialization refactoringKT-76366ContextCollector: annotations on class members don't have the class as implicit receiverKT-76352ContextCollector: wrong class annotation context in BODY modeKT-76341ContextCollector: support dangling modifiersKT-76332"Declaration should have non-local container" for declaration inside file annotationKT-76115DisableFirElementBuilder#getFirForElementInsideAnnotationsoptimization for files, classes and scriptsKT-76347ContextCollector: avoid resolution for enum entry annotationsKT-76272Cleanup AbstractFileStructureTestKT-75542K2 AA: "FirDeclaration was not found for class KtNamedFunction, fir is class FirErrorExpressionImpl" for unclosed annotation on member functionKT-73719K2. "FirDeclaration was not found for class KtDestructuringDeclaration, fir is class FirBlockImpl" on incorrect chain callKT-72908K2 Analysis API: "FirDeclaration was not found for class org.jetbrains.kotlin.psi.KtFunctionLiteral" with non-local destructuring declaration without initializer beforeinitblockKT-75532ContextCollector: scope for an anonymous function type parameter contains regular parametersKT-74508FirElementBuilder#findElementInsideshould reuse logic fromKtToFirMapping#getFirKT-73066[LL] Enable low-level-api-fir-native even with the disabled native partKT-75132Investigate failures of sandbox diagnostic testKT-75130Set up LL FIR tests for sandbox test dataKT-73386Standardize LL FIR test for compiler test dataKT-75125ISE “Value classes cannot have 0 fields” on instantiating inline class without fieldsKT-75179ContextCollector: support error propertiesKT-74632K2: ISE FirLazyDelegatedConstructorCall should be calculated before accessingKT-74818K2 AA: "FirDeclaration was not found for class KtTypeParameter, fir is null" with TYPE_PARAMETERS_NOT_ALLOWED on anonymous functionKT-73183Support context parameters in ContextCollectorVisitorKT-60350K2 IDE: top level destructuring RHS should be resolvableKT-74794K2: FirLazyExpression should be calculated before accessing with context parameter and implicit return typeKT-72938Get rid of KaFirAnnotationListForReceiverParameterKT-73727Exception in implicit type resolutionAnalysis API. Infrastructure
KT-74917[Analysis API, Test Framework] Introduce a way to acquirePsiFilefor a givenTestFileinKtTestModuleAnalysis API. Light Classes
KT-73405Get rid of KtElement#{symbolPointer, symbolPointerOfType} API usagesKT-75391Reduce the amount of psi-based logic in light classesKT-70001SLC adds@Overridewith zero text offset onoverridememberKT-75755K2. False positive red code on vararg parameters in Kotlin class with@JvmOverloadswhen called from JavaKT-75397Constructors and functions with non-last vararg parameters are treated as varargsKT-74868Support context parametersKT-74733SymbolPsiLiteral.text == value for Java constantKT-74620Delegated functions with value classes are present in light classesKT-74595Static functions with value classes are present in light classesKT-74284Synthetic data class methods using value class types present in LCAnalysis API. Providers and Caches
Performance Improvements
KT-62115Analysis API: Package providers are not cached per search scopeKT-74463Analysis API:LLNativeForwardDeclarationsSymbolProviderqueries its cache even when theClassIdcannot represent a native forward declarationFixes
KT-74541Analysis API: Include files generated by resolve extensions inKaModulecontent scopesKT-64236Analysis API: Introduce a separate module for fallback dependencies of library source modulesKT-74090Analysis API: Support dumb mode (restricted analysis)KT-63780Analysis API: Invalidate resolvable library sessions when binary library modules are modifiedKT-72388KaFirStopWorldCacheCleaner: Control-flow exceptionsKT-74943Analysis API: ReplaceKotlinGlobalModificationServicewith simpler global modification event publishing and listener-based modification trackersKT-70518K2: Analysis API: Access indices outside ofConcurrentMapcomputation in symbol providersKT-74302Analysis API:LLFirProvidershould disregard self-declarations ingetFirClassifierBy*KT-67868Analysis API: Improve the architecture ofLLFirKotlinSymbolProvidersAnalysis API. Standalone
KT-72810withMultiplatformLightClassSupport is inconvenient in StandaloneAnalysis API. Stubs and Decompilation
KT-71787PsiRawFirBuilder.Visitor#visitStringTemplateExpressionforces AST loadingKT-68484K2 IDE, Analysis API: "We should be able to find a symbol for function" for getting KaType ofIterable<T>.map(transform: (T) -> R)parameter in J2KAnalysis API. Surface
New Features
KT-74475AddisInlineforKaPropertySymbolKT-75063KaScopeContext: support context parametersPerformance Improvements
KT-73669Support psi-based symbol pointer for implicit primary constructorsKT-76008Provide PSI-based implementation forKaFirNamedClassSymbol#companionObjectKT-70165Introduce PSI-basedKaSymbols for K2Fixes
KT-72730K2: "Unexpected owner function: KtNamedFunction" on vararg val parameter in functionKT-75123K2. KaFirNamedFunctionSymbol should contain a receiverKT-75894Cannot build KaFirJavaFieldSymbol for FirFieldImplKT-75115Analysis API: TheJavaModuleResolvercompiler class is leaked to Analysis API platform implementationsKT-76018K2: Stop the wold leads to deadlock/freezeKT-76011KaFirNamedClassSymbol#companionObjectdoesn't provide generated objects generated by compiled pluginsKT-72482"KotlinIllegalArgumentExceptionWithAttachments: Expected all candidates to have same callableId but some of them but was different" on trying to add the importKT-75586KaFirPropertyGetterSymbol#isInlineandKaFirPropertySetterSymbol#isInlineis incorrect for accessors with explicit modifierKT-58572Analysis API: Enforcing STATUS resolve in 'KtFirNamedClassOrObjectSymbol.visibility' may cause lazy resolve contract violationKT-75574Recognize injected code fragment copiesKT-75573Recognize physical file copies as dangling filesKT-74801Analysis API: Publish/subscribe to modification events with a single message bus topicKT-73290Analysis API: Improve the architecture of content scopes and resolution scopesKT-68901Constructor delegation call receiver missing in fir implementationKT-72639Support context parameter APIKT-73112AA: FirExpression.toKtReceiverValue should handle context receivers properlyKT-74905Cannot find context receiver in FIR declarationKT-74563createPointeris overloaded not for all implementationsKT-73722Analysis API: Automatically check that the API surface is fully documentedKT-65065ProvideKtTypeReference#getShortTypeText()Backend. Native. Debug
KT-75991Xcode 16.3: Fix lldb stepping test over an inline functionBackend. Wasm
New Features
KT-59032Support instantiation of annotation classes on WASMFixes
KT-77622K/Wasm: investigate CMP crash on mobile SafariKT-76747[Wasm] Wasm name section absent for wasm structsKT-76701K/Wasm: custom formatters are not loaded when a project is built with incremental compilationKT-66081K/WASM:0/0,5/0and5%0throw not ArithmeticException, but RuntimeErrorKT-76287[Wasm] Enable stdlib and kotlin.test tests after compiler bootstrapKT-75871[Wasm] Implement new RTTI approachKT-75872Wasm / IC: IllegalStateException: IC internal error: can not find libraryKT-74441K/Wasm: incorrect 1e-45.toString()KT-59118WASM: floating point toString inconsistenciesKT-68948Wasm: float from variable is printed with many decimal pointsKT-69107[wasm] Seemingly incorrect roundingKT-73362Migrate K/Wasm sources to new IR parameter APICompiler
New Features
KT-70722Implement better Kotlin warnings for value classes and JEP 390 (Warnings for Value-Based Classes)KT-71768Enable -Xjvm-default=all-compatibility by default to generate JVM default interface methodsKT-54205Support jakarta Nullability annotationsKT-57919Store all annotations in Kotlin metadata on JVM under a flagKT-73255Change defaulting rule for annotationsKT-74382Annotating Java record components for@JvmRecorddata classKT-74811Prohibit usages of@MustUseValue/@IgnorableValueif RV checker is not enabledKT-74806Implement feature flag for improved unused return value checkerKT-74809Support unnamed local variablesKT-73508Add a warning diagnostic for using kotlin.concurrent.AtomicRefKT-72941ANNOTATIONS_ON_BLOCK_LEVEL_EXPRESSION_ON_THE_SAME_LINE missing in K2KT-74497Warn about incompatible Kotlin and Java targets in annotationsKT-75061Support context-sensitive resolution in type positionKT-75315Support context-sensitive resolution in the call-argument positionKT-75316Support context-sensitive resolution for expression-position with expected typeKT-76088Support context-sensitive resolution for annotation argumentsKT-74049Introduce special override rule to allow overriding T! with T & AnyPerformance Improvements
KT-76395Performance degradation on 28.03.2025KT-76422FirJavaFacade#createFirJavaClass: do not compute super type references right awayKT-75957K2: PsiRawFirBuilder.Visitor#toFirExpression forces AST loading via getSpreadElementKT-74824Exponential performance caused by nested flexible typesKT-62855K2: extra allocation for SAM conversion compared to K1KT-74977K/N: support stack array for Array(size) callKT-74369Exponential compiler memory usage in specific situations with type inferenceFixes
KT-76606Enable 'Indy: Allow lambdas with annotations' by defaultKT-77301False positive Context Parameter resolution when using DslMarkerKT-74389K2: False positive NON_EXPORTABLE_TYPE on non-UnitPromise<...>in K/JSKT-77219"@Composableannotation is not applicable" on vararg@Composable() -> Unit in Kotlin 2.2.0KT-76357K2: a nested class annotation observes member declarations of the outer classKT-72734Support new callable reference nodes in Kotlin NativeKT-74421K2: Missing "val cannot be reassigned" when trying to assign a value to parent's "val"KT-63720Coroutine debugger: do not optimise out local variablesKT-74470NSME on calling in runtime internal constructor of value class with default arg from testsKT-77640Context parameters: using 'contextOf()' function leads to [NO_CONTEXT_ARGUMENT]KT-73909Add an inspection discouraging usage of kotlin.concurrent Native atomics in favor of the new atomicsKT-76583CCE: suspend lambda attempts to unbox value class parameter twice after lambda suspendedKT-76663KJS: KotlinNothingValueException caused by expression return since 2.1.20KT-75457Native: cache machinery uses stdlib cache with default runtime options even if custom runtime options are supplied when partial linkage is disabledKT-76615K2: "IllegalArgumentException: Inline class types should have the same representation: Lkotlin/UByte; != B" for mixed Java/Kotlin codeKT-77220Annotation with EXPRESSION is not allowed on lambdas in Kotlin 2.2.0KT-76381K2: Expected expression 'FirPropertyAccessExpressionImpl' to be resolvedKT-74739Native: "IllegalArgumentException: All constructors should've been lowered: FUNCTION_REFERENCE"KT-74325Explicit API mode does not enforce explicit return types for extension propertiesKT-77259Confusing message forANNOTATION_WILL_BE_APPLIED_ALSO_TO_PROPERTY_OR_FIELDKT-73771K2: Infinite compilation caused by buildList without typeKT-61258Kotlin/Native: CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Base]KT-75317Kotlin/Native: segfault in kotlin::gc::Markkotlin::gc::mark::ConcurrentMark::MarkTraitsKT-75965The iOS app did not run successfully in Release modeKT-77397Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL when calling declaration with contextual function type in signatureKT-77137K2: Controversial behavior allows resolving annotation arguments on a companion inside itKT-77150Native: compilation fails with an assertion errorKT-51960ClassCastException: Inline function with both context and extension receiver produces this when invokedKT-73611Remove -Xextended-compiler-checks in favor of a deprecation cycleKT-74649Deprecate language versions 1.8 and 1.9KT-77283Binary compatibility of FirDeclarationCheckerKT-73445K2: do not report "cannot infer visibility" when inheriting multiple implementationsKT-75945Indy: Allow lambdas with annotationsKT-76898K2: ClassCastException when data class shadows supertype'scomponentXmethod with wrong typeKT-75992Xcode 16.3: stacktraces on simulators are not symbolicatedKT-76805Wrong NPE occurs when assigning synthetic properties with platform types in Kotlin 2.1.20KT-76171"KotlinIllegalArgumentExceptionWithAttachments: Expected expression 'FirSingleExpressionBlock' to be resolved"KT-77078K2: anonymous object is wrongly allowed to implement interfaces by unsafe DelegationKT-72722Treat 'copy' calls of a data class as explicit constructor usagesKT-77001Leave ForbidParenthesizedLhsInAssignments as a warningKT-75828Store backing field/delegate annotations and extension receiver annotations in metadataKT-58369K2: enable DFA warningsKT-51258Annotations should go before context receiversKT-76253K2 Compiler: Less precise diagnostic COMPONENT_FUNCTION_AMBIGUITY for flexible typeKT-59526Store annotation default values in metadata on JVMKT-63850K2: setter with an annotated parameter hasisNotDefault == falseflag in metadataKT-75712-Wextra: false positive UNUSED_LAMBDA_EXPRESSION on functional type variable assignment with inferred typeKT-4779Generate default methods for implementations in interfacesKT-69624Debugger: Missing local variable in Variables view (inline function)KT-75518NO_CONTEXT_ARGUMENT should report the name of the context parameter in addition to the typeKT-76199Introduce -Xcontext-sensitive-resolution compiler flagKT-75553MISSING_DEPENDENCY_SUPERCLASSandMISSING_DEPENDENCY_SUPERCLASS_WARNINGis reported at the same time on the same elementKT-76159Obsolete error "'@JvmDefaultWithCompatibility' annotation is only allowed on interfaces" should be removedKT-76660False negative RETURN_NOT_ALLOWED in lambda in default argument leads to NoClassDefFoundError: $$$$$NON_LOCAL_RETURN$KT-76301Fail to infer types after syntactical changeKT-74999K2: KotlinNothingValueException within Extension FunctionKT-76675KIAEWA exception at KaFirDataFlowProvider with non-local return from nested inline callKT-75756Backend Internal error: Exception during IR lowering when trying to access variable from providedProperties in class within kotlin custom scriptKT-76345Enhance variable fixationKT-76578[FIR, K1/K2 Regression]lateinitis allowed on loop parametersKT-76448FirOverrideChecker: class ClsMethodImpl is not a subtype of class KtNamedDeclaration for factory VIRTUAL_MEMBER_HIDDENKT-73360Migrate K/JVM sources to new IR parameter APIKT-74852Kotlin/Native: allow caches for thread state checker and sanitizersKT-76130IR evaluator does not support array literals in annotation parameter default valuesKT-76436Missing K2 checker: non-local return through lambda passed to inline f/oKT-74326False negative: no variable must be initialized error though code doesn't compileKT-76572FIR_NON_SUPPRESSIBLE_ERROR_NAMES does not contain deprecation errorsKT-75704RefactorFirWhenSubjectExpressionKT-76284Flexible captured type is not approximated in receiver positionKT-76192RETURN_TYPE_MISMATCH with same expected and actual type: nullability of actual type is omittedKT-75944Allow using invokedynamic for lambdas with no 'Runtime' level retention annotationsKT-76396FirIntegerConstantOperatorScope: NoSuchElementException: Collection contains no element matching the predicateKT-76209CONFLICTING_UPPER_BOUNDS onNothingboundKT-59506Context receivers: Unable to use trailing comma in receiver listKT-46119NONE_APPLICABLE instead of NAMED_ARGUMENTS_NOT_ALLOWED with overloaded Java constructor callKT-75503Run lazy resolution in CallableCopyTypeCalculator and use withForcedTypeCalculator everywhere in checkersKT-76485Don't report EXTENSION_SHADOWED_BY_MEMBER if extension can be called with named argumentsKT-76154False positive "EXTENSION_SHADOWED_BY_MEMBER" when extension adds default values to parametersKT-76527False positive UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL with -Xcontext-receivers and implicit invokeKT-63246K2: False positive NOTHING_TO_OVERRIDE in generic property with context receiver in non generic class extending generic classKT-58534K2: "Argument type mismatch" with typealias to context receiver functional typeKT-71792Switch latest stable version in Kotlin project to 2.2KT-74827CompilationErrorException : Could not load module in an attempt to find deserializer when trying to evaluate an expressionKT-70352K2: False-negative CONFLICTING_UPPER_BOUNDS onNothingboundKT-71481K2: drop pre-1.6 language features from compiler codeKT-74454Support trailing comma in context parametersKT-74069False positive UNUSED_EXPRESSION due to Long/Int conversionKT-74337Local Delegated properties don't preserve their annotations and don't show up in reflectionKT-55187Context receivers in function types can have labelsKT-58498Context receivers: ClassCastException with object and extension function in interfaceKT-58165K2: "IllegalArgumentException: No argument for parameter VALUE_PARAMETER" on overridden contextual propertyKT-75234Add error for callsInPlace contracts on context parametersKT-73805K2: Investigate missing diagnostic in implicit invoke call on context function type with receiver from module with disabled context parametersKT-41934NI: a type variable for lambda parameter has been inferred to nullable type instead of not null oneKT-75983Backend Internal error: Exception during IR lowering 'IllegalStateException: Internal error: cannot convert Any to Int'KT-75535Compilation of typealias does not check for clashesKT-72313K2 IDE / KMP Debugger: Evaluation of inline functions declared in a common source set causes a crashKT-76290False positive UNUSED_EXPRESSION while returning Unit in the when branchesKT-32358NI: Smart cast doesn't work with inline function after elvis operatorKT-76316K2: Missing NON_PUBLIC_CALL_FROM_PUBLIC_INLINE on object extending private class in public inline functionKT-76324Frontend diagnostic says "... this will be an error in Kotlin N.M" but N.M is already releasedKT-76058PCLA: compile-time failure on calling a higher-order function from another module inside a lambda assigned to a variable of a type with a postponed type variableKT-75571K2: type mismatch error provides unsubstituted typesKT-31391'Recursive call is not a tail call' with elvis operator in tailrec functionKT-73420False-positiveNON_TAIL_RECURSIVE_CALLon tailrec function with elvis in the return statementKT-75815Disable warnings about different context parameter names in overridesKT-75169Unnecessary EXTENSION_SHADOWED_BY_MEMBER on generic declarationsKT-75483Native: redundant unboxing generated with smart castKT-76339K2: Dangling modifier list is missed for enum entries in PSI modeKT-75513Avoid overrides traversal without preinitializationKT-74587Report an error when JvmDefaultWithoutCompatibility is used with -Xjvm-default=allKT-76257Annotations with class references are not supported when marking IR declarations as visible to metadataKT-71793Drop language versions 1.6 and 1.7KT-59272Incorrect bytecode generated: wrong line number table after conditionKT-69248K2: IAE “class KtDotQualifiedExpression is not a subtype of class KtCallExpression for factory ENUM_CLASS_CONSTRUCTOR_CALL” with qualified enum constructor callKT-73778Kotlin Debugger: NSFE on accessing private property from dependencies during evaluationKT-74131Incorrect line numbers for static initializer with delegated local variableKT-76320K2: PsiRawFirBuilder: import alias triggers ast loadingKT-63851K2: NosetterValueParameterin metadata for property setter with an annotated parameterKT-55083JVM: AbstractMethodError caused by lambda with sealed base interface and fun sub interface and overridden methodKT-16727Names for anonymous classes in interfaces are malformed on JDK 8KT-12466NoClassDefFoundError: B$DefaultImpls on super interface call through K-J-K inheritanceKT-71002Possible inheritance from nullable type through typealiasKT-75293K2: Missing [HAS_NEXT_FUNCTION_TYPE_MISMATCH] diagnosticsKT-75498Forbid .declarations access from checkersKT-72335KotlinIllegalArgumentExceptionWithAttachments when using illegal selectorKT-68375K2: FirPrimaryConstructorSuperTypeChecker fails on generated superclassesKT-71718K2: drop TypePreservingVisibilityWrtHackKT-75112FE resolves wrong receivers order for property passed to delegateKT-75924K2. Incorrect generic type Inference "R? & Any" appears for "Add explicit type arguments"KT-75969java.lang.IllegalArgumentException: source must not be null on red codeKT-75322ConeDiagnosticToFirDiagnosticKt: source must not be nullKT-73800Wrong method executed on super call in -Xjvm-default=all/all-compatibility with an extraneous super-interfaceKT-38029Wrong method executed on super call in diamond hierarchy with covariant overrideKT-75242Any use-site target can be applied to a lambda and an expressionKT-73051incorrect direction of subtyping violation in type mismatch error's message for A<X> </: A<Y> given a Tv <: Rv == C constraint from a lambda return positionKT-75090Argument type mismatch: actual type is 'SuspendFunction0', but 'SuspendFunction0' was expected when anonymous function is passed to function expecting suspend function typeKT-74956K2: No USAGE_IS_NOT_INLINABLE with compiling an inlined function callKT-76049K2: drop explicitTypeArgumentIfMadeFlexibleSynthetically creation when DontMakeExplicitJavaTypeArgumentsFlexible is enabledKT-76055K2: drop prepareCustomReturnTypeSubstitutorForFunctionCall logic when DontMakeExplicitJavaTypeArgumentsFlexible is enabledKT-76057K2: don't do reverse Java overridability checks when DontMakeExplicitJavaTypeArgumentsFlexible is enabledKT-75197K2: Missing [COMPARE_TO_TYPE_MISMATCH] diagnosticsKT-75639Inlinecontextfunction leads toClassCastExceptionKT-75677K2: change runtime behavior of KT-75649 case in 2.2KT-75961K2:PsiRawFirBuilder.Visitor#visitSimpleNameExpressionforces AST loading viagetReferencedNameElement().node.textKT-67869Make inference for lambda working consistently inside and outside of the callKT-74885K2: IAE "source must not be null" in FirCyclicTypeBoundsCheckerKT-75578K2: False negative [SUPER_CALL_WITH_DEFAULT_PARAMETERS] when calling the upper-class implementation of a method with the default value argumentKT-73954Generate implementations in classes for inherited non-abstract methods in -Xjvm-default=all-compatibilityKT-75173Context parameters: KotlinIllegalArgumentExceptionWithAttachments if you override function with value/extension parameter by fun with contextKT-75742Native: "IllegalArgumentException: unknown pass name '' " when specifying an empty list of LLVM passesKT-74819K2: False-positive overload resolution ambiguity for flatMap inside PCLAKT-75093K2 IDE: "Unreachable code" highlighting range is confusingKT-74572Context parameters: contracts don't work with context parametersKT-74765Move K1 lazy IR implementation from 'ir.tree' to 'psi2ir'KT-71425IR Inliner: investigate return type of an inlined blockKT-74764Native: merge init nodes generated within the same LLVM module for the same klibKT-75561K/N: place InteropLowering after UpgradeCallableReferences phaseKT-73369K/N: move interop lowering up the pipelineKT-75517K2: Refactor FirCallableSymbol.resolvedContextParameters to return symbolsKT-75821K2: REPL resolution doesn't take into account the property type when processing its initializerKT-75705IllegalArgumentException when isInitialized is used with java fieldKT-75334Java target shouldn't be specified if Kotlin target isn't specifiedKT-75157Missing PARAMETER_NAME_CHANGED_ON_OVERRIDE and DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES for context parametersKT-75160Check usages of value parameters in checkers and adapt to context parametersKT-75729KtPsiFactory: no type-safe way to create triple-quoted KtStringTemplateExpressionKT-75040UnifysubjectandsubjectVariableinFirWhenExpressionKT-75323FirSyntheticProperty: Unexpected status. Expected is FirResolvedDeclarationStatus, but was FirDeclarationStatusImplKT-75602Introduce concept of shared library session in Fir sessionsKT-75509PARAMETER_NAME_CHANGED_ON_OVERRIDE is reported randomlyKT-75124IAE “class org.jetbrains.kotlin.psi.KtContextReceiver is not a subtype of class org.jetbrains.kotlin.psi.KtParameter for factory EXPOSED_PARAMETER_TYPE” on private context receiverKT-73585K2: ABSTRACT_SUPER_CALL is not reportedKT-75531K2 REPL: local name doesn't shadow one from implicit receiverKT-73359Migrate frontend sources to new IR parameter APIKT-75380K2: Modality is configured incorrectly for some FirDefaultPropertyAccessorKT-75526Regression in K2 scripting: local name doesn't shadow one from the implicit receiverKT-59379K2: Missing MIXING_NAMED_AND_POSITIONED_ARGUMENTSKT-75106K2: type parameters of anonymous functions are unresolvedKT-73387Unexpected implicit type during enhancementKT-72618Cannot define operator inc/dec in class contextKT-74546Serialize context parameters to metadataKT-68768K2: unsuccessful inference fork with jspecify annotationsKT-75345Add a test for KT-42271KT-75012K2: Compiler crash ondynamic == nullKT-75195IllegalStateException: No value for annotation parameter when@allmeta-target is used with annotation with constructorKT-75163WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET for@allmeta-target although there are applicable targetsKT-75198@allmeta-target should be forbidden for delegated propertiesKT-74958K2: UNEXPECTED_TRAILING_LAMBDA_ON_A_NEW_LINE isn't reported on accidental trailing closureKT-74982Improve UNSUPPORTED message handlingKT-75111False negative "This declaration needs opt-in" for usage of enum entry with OptIn marker in another moduleKT-74924Infinite recursion in substitution of captured type with recursive supertypeKT-75289NPE: getParent(...) must not be nullKT-75275Inline class member inherited from interface is not mangled in '-Xjvm-default=all-compatibility'KT-74340FIR: folding binary expression chains for psi parserKT-73831Do not choosefieldtarget in annotation classesKT-73494Enable first-only-warn annotation defaulting modeKT-75174K2: incorrect influence of return type nullability on required receiver type in KJK hierarchy with propertyKT-74920Overriding T! with T & Any is not allowed to the extension property receiver typeKT-75150False ambiguous context parameter reported because context is not chosen via generic parameterKT-74965CLI compiler doesn't report syntax errors for JS, Metadata backends if light-tree mode is disabledKT-74303K2 IDE / Kotlin Debugger: AE “Trying to inline an anonymous object which is not part of the public ABI” on evaluating private inline function with object insideKT-75177NoSuchMethodError on suspend default interface method fake override returning inline class in -Xjvm-default=all-compatibilityKT-74718K/N: Move TestProcessor phase to the top of the pipelineKT-75015Context parameters: it is possible to declare anonymous function with modifiers but they don't have any effectKT-75092K2: Missing errors for modifiers on anonymous function in statement positionKT-75009Context parameters: context is unresolved inside anonymous function if passed as an argumentKT-75017Context parameters: "IllegalStateException: Cannot find variable a: R|kotlin/String| in local storage " when context from another local function is calledKT-75154Context receiver deprecation warning should depend on langauge version, not on LATEST_STABLEKT-74979Context parameters: anonymous functions with a context aren't parsed in complex casesKT-74673K2: ClassCastException when passing suspending functional interface with genericKT-74469K2: False positive: "Argument type mismatch" during Java interopKT-75105K2: False negative NAME_IN_CONSTRAINT_IS_NOT_A_TYPE_PARAMETER for type constraint of anonymous functionKT-74929False positive TYPE_PARAMETER_OF_PROPERTY_NOT_USED_IN_RECEIVER if it is used with T&AnyKT-74227K2: "Cannot infer type for this parameter. Please specify it explicitly" caused by lambda in another lambda with a parameterized function typeKT-64558K2 compiler does not report UNNECESSARY_SAFE_CALL, UNNECESSARY_NOT_NULL_ASSERTION, USELESS_ELVIS, while K2 IDEA doesKT-74728K2: Java method overriding Kotlin method with receiver loses vararg modifierKT-70789CLI error "mixing legacy and modern plugin arguments is prohibited" on using -Xcompiler-plugin unless default scripting plugin is disabledKT-72829Forbid 'entries' name of enum entry, and deprioritize it in resolveKT-75037K2: IrGeneratedDeclarationsRegistrar.registerFunctionAsMetadataVisible doesn't handle extension receivers and context parametersKT-73149Annotations support for context parametersKT-74798Report error on local contextual propertiesKT-74092Context parameters: it is not possible to declare an anonymous function with a contextKT-52152K2: Investigate suspicious code at SAM conversionsKT-75016K2: BackendException when context var property is declared in interfaceKT-74474K2: Report more precise diagnostic when last expression of non-unit lambda is a statementKT-74478K2: False negative RETURN TYPE_MISMATCH if the last statement of a lambda is indexed assignmentKT-73685K2 IDE / Kotlin Debugger: NSME “Method not found” on evaluating function with constant value in@JvmNameKT-74449Report RETURN_TYPE_MISMATCH instead of ARGUMENT_TYPE_MISMATCH for return expressions in lambdasKT-74918FIR: account for K/Wasm diagnostics in generateNonSuppressibleErrorNamesFileKT-74897K2: Report UNSUPPORTED_FEATURE instead of TOPLEVEL_TYPEALIASES_ONLY for nested type aliasesKT-74963K2: Fir2Ir: Avoid a situation when startOffset > endOffset in generated IrBranchKT-74697Overriding a method that's both deprecated and non-deprecated should not cause warningsKT-74928K2: "IllegalStateException: Cannot find cached type parameter by FIR symbol" in KJK hierarchy with extension propertyKT-74630K2: local class arguments in annotations on types and type parameters are not serializedKT-74445Commonize Native Function/Property reference loweringsKT-74670Warning message CONTEXT_CLASS_OR_CONSTRUCTOR isn't reported for context receiver on the constructorKT-74617Trivial SMAP optimization leads to missing debug info after inlineKT-74812compile-time failure on a callable reference with an input type inferred to an inaccessible generic typeKT-66195K2: Java method is not enhanced from overridden's context receiversKT-74501Context parameters: ABSTRACT_MEMBER_NOT_IMPLEMENTED if fun with context is implemented in Java in KJK hierarchyKT-74385Missing diagnostic on repeated suspend modifier in function typeKT-74749Provide explanation IR before script compilationKT-74751K2: IllegalStateException: Can't apply receivers of FirPropertyAccessExpressionImpl to IrTypeOperatorCallImplKT-74729NPE when suspend lambda has inline class parameterKT-74336Not supported: class org.jetbrains.kotlin.fir.types.ConeIntersectionTypeKT-74203K2: False negative NO_ELSE_IN_WHEN of a generic type with star projection <*> bounded by a sealed hierarchyKT-48085Kotlin/Native: LLD removes live code with--gc-sectionswhen producing DLLKT-69164Native: use lld from bundled LLVM distribution when compiling on Windows for a MinGW targetKT-74081Context parameters: implicit call resolves to extension when there is a contextKT-74682Implement internal type exposure via parameter bounds deprecation postponementKT-74556K2: "IAE: class KtDestructuringDeclaration is not a subtype of class KtNamedDeclaration for factory REDECLARATION" with two non-local destructuring declarationsKT-73146Context parameters CLI & diagnosticsKT-72104Consider enabling check for unbound symbols in JVM before loweringsKT-74568Synthetic nested classes missing JVM attributesKT-73703[Native] Move KonanIrLinker toserialization.nativemoduleKT-61175K2: FirReceiverParameter does not extend FirDeclarationKT-73961'lateinit is unnecessary' on transient properties should not be reported for serializable classesKT-73858Compose / iOS: NullPointerException on buildingKT-62953JVM IR: UseSimpleNamedCompilerPhaseinstead ofNamedCompilerPhaseKT-72929Consider caching typealiased constructor symbols created by TypeAliasConstructorsSubstitutingScopeKT-74459K2: false positive MISSING_DEPENDENCY_CLASS for types inside default argumentKT-73705[Native] Decouple native caches support from KonanIrLinker and KonanPartialModuleDeserializerKT-74091K2:@JvmOverloads-produced overloads have generated line number tableKT-69754Drop -Xuse-k2 compiler flagKT-73352K2: false negative ARRAY_EQUALITY_OPERATOR_CAN_BE_REPLACED_WITH_EQUALSKT-72962Consider enabling ConsiderForkPointsWhenCheckingContradictions LF earlierKT-73027IllegalStateException: Annotation argument value cannot be null: sinceKT-74242Freeze onrunCatchingcall infinallyblock inside SAM conversionKT-29222FIR: consider folding binary expression chainsKT-73760Cannot implement two Java interfaces with@NotNull-annotated type argument and Kotlin's plain (nullable) type parameterKT-58933Applying suggested signature from WRONG_NULLABILITY_FOR_JAVA_OVERRIDE leads to red codeKT-70507Should parentheses prevent from plus/set operator desugaring?KT-67520Change of behaviour of inline function with safe cast on value typeKT-67518Value classes leak their carrier type implementation details via inliningKT-72305K2: Report error when using synthetic properties in case of mapped collectionsKT-71226K2 Evaluator: Code fragment compilation with unresolved classes does not fail with exceptionKT-70233Implement a deprecation error for FIELD-targeted annotations on annotation propertiesKT-67517Value class upcast to Any leaks carrier type interfacesKT-72814FIR: don't use function references in FirThisReferenceKT-73153K2: Standalone diagnostics on type arguments are not reportedKT-73011K2: Allow overloads resolution for callable references based on expected type variable with constraintsKT-70139Remove dependencies of debugger on K1 and old JVM backendKT-69223Drop parallel lowering mode in JVM backendKT-7461Forbid using projection modifiers inside top-level Array in annotation's value parameterKT-53804Restore old and incorrect logic of generating InnerClasses attributes for kotlin-stdlibKT-52774Resolve unqualified enum constants based on expected typeCompose compiler
New features
5f7e5d1Enabled PausableComposition feature flag by defaulte49ba7aEnabled OptimizeNonSkippingGroups feature flag by defaultFixes
b/420729503Avoid copying@Deprecatedannotations on Compose compiler stubsb/417412949Emit fake line number forskipToGroupEndbranchb/412584977Fix false positive for overriding open functions from older dependenciesb/409238521Fix crash when searching for ComposableLambda::invoke function on JSb/408752831Fix early return with value fromkeygroupsb/388505454Treat context parameters the same way as extension receiverb/408013789Add missing return for the default function wrappersb/405541364Realize coalescable children in the body ofkeycallb/305035807Add support for@Composablefunction references with K2b/401484249Generate a group aroundArrayconstructor callb/400380396Fix missingendMovableGroupcall with early return inkeyfunctionb/397855145Fix "Unknown file" error in target annotation inferenceb/274898109Fix off-by-one error when calculating changed arg count for lambdasb/377499888Allow restarting overridden functions in a final classb/393400768Use -1 for.changedcall if nullable enum parameter isnullb/390151896Fix default arguments with varargs in@Composablefunctionsb/388030459,b/377737816Prevent usage of transitive captures in lambda memoizationb/310004740Check vararg parameter length in skipping logicb/367066334Add diagnostic to restrict@Composableannotation to function types onlyb/388505454Change order of $changed bits with context parametersCMP-7873Native build fails with "e: Compilation failed: Exception during generating code for following declaration"IDE
KT-54804Generate synthetic functions for annotations on properties in light classesIR. Actualizer
KT-70907Actualize fake override symbols in Ir ActualizerIR. Inlining
Fixes
KT-76145Enhance error message about poisoned KLIBs in KLIB-based compilersKT-70916IR: Report errors on exposure of private types in non-private inline functionsKT-73155MoveMappingfromLoweringContextback toCommonBackendContextKT-76186[IR] Sanitize deserialized IR dump of anonymous classesKT-75788IR inliner: Serialize preprocessed inline functions in a separate place inside KLIBsKT-71416Perform IR-level visibility diagnostics for inline functions after the first phase of inliningKT-76224[IR][Inliner] Dumb file is unsuported in IrSymbolBase.getDescriptor()KT-75793IR inliner: Stop injecting the deserialized function body to LazyIR inline functionKT-75791IR inliner:NonLinkingIrInlineFunctionDeserializershould load inline functions from a separate location in a KLIBKT-73708Use some marker in KLIBs produced with IR inlinerKT-76024[JS][IR Inliner] Partial linkage: No function found for symbol inkotlinpackageKT-75733Reorganize execution of the common prefix at 1st phase of compilationKT-75986Add an option to theDumpIrTreeOptionsto dump IR signature if availableKT-75951[IR Inliner] Illegal non-local return reported by the partial linkage engineKT-75932Fix a problem with already bound symbol with public IR inline enabledKT-64812Investigate and fix remaining owner usages in inlinerKT-74732IR: Exposure of private type is reported at wrong source locationKT-76007IR deserialization tests w/ enabled IR inliner: undefined offsets in IrInlinedFunctionBlock.inlinedFunctionSymbolKT-74734[Native] Use NativeInliningFacade in new subclass of AbstractFirNativeSerializationTestKT-73985KLIB Synthetic Accessors Dump Format: Include local declarationsKT-72594[JS][Native] Add IrInliningFacade to test runnersKT-74456SerializedIrDumpHandler: Compare IR dumps with source offsetsKT-73624[Native] Implement inlining facadeKT-70370SyntheticAccessorLowering: Turn on mode with narrowing visibility on 1st phase of compilationKT-70452OuterThisInInlineFunctionsSpecialAccessorLowering - run it after inlining of private functionsKT-70451Enable double-inlining in Native & JS backends unconditionallyKT-69681IR: Report warnings on exposure of private types in non-private inline functionsIR. Interpreter
KT-74581SupportIrRich*Referencein IR interpreterIR. Tree
Fixes
KT-73189Migrate compiler sources to new IR parameter APIKT-77508K/JS and K/Native CompilationException Wrong number of parameters in wrapperKT-74331Implement IrElement.copyAttributes as a true attribute map copyKT-76600Use a language feature to check error on cross-file IrGetField operations generated by compiler pluginsKT-75628IR validator: Forbid IrExpressionBody for IrFunctionKT-75679Extract commoninvokeFunctionin IrRichCallableReferenceKT-74799[Native][IR] Excessive FUNCTION_INTERFACE_CLASS after deserializationKT-71138Report error on cross-file IrGetField operations generated by compiler pluginsKT-75196[IR] Make startOffset and endOffset mutableKT-73206Extract common parts from new IrRichFunctionReference/IrRichPropertyReference nodesKT-73190Migrate common backend sources to new IR parameter APIKT-73225Migratecompiler.ir.serialization.commonto new IR parameter APIKT-73220Migratecompiler.ir.treeto new IR parameter APIKT-75189Add an IR validation for the correspondingPropertySymbolKT-74275Adjust IR dump format for context parameters & new parameter APIKT-74269Drop IrElementVisitor, IrElementVisitorVoid and IrElementTransformer interfacesKT-72739Create a lowering to replace old callable reference nodes with new onesKT-73120Get rid ofIrclassKT-73045Fix inconsistency between shapes of IR calls vs calleeKT-69714[IR] Remove IrErrorDeclarationKT-73609Tests: Implement DeserializerFacade for Kotlin/NativeKT-73813Implement tests for all IR validator checkersKT-73171Choose the approach for testing IR serialization/deserialization wrt IR inlinerKT-73430[IR] Get rid of SymbolFinder usages outside ofSymbolshierarchyKT-74455IR dump: Support dumping source offsetsKT-73433[IR] Get rid of some symbols lookup methodsJVM. Reflection
KT-75505Reflection: use kotlin-metadata-jvm to implement class visibility, modality, modifiers, etcKT-77663Reflection: java.util.ServiceConfigurationError: "module kotlin.reflect does not declareuses" when using kotlin-reflect in modular modeKT-75464Bundle kotlin-metadata-jvm into kotlin-reflectKT-71832kotlin.jvm.internal.ClassReference static overhead is 11,060 bytesJavaScript
New Features
KT-31493[Kotlin/JS] Can't put typealias in file marked with JsModule annotationPerformance Improvements
KT-74533K/JS: avoid number to char calls in charSequenceGet intrinsicFixes
KT-77021CompilationException: Encountered a local class not previously collected on inner classes inside anonymous objectsKT-78073K/JS: KProperty from local delegate changes after another delegate is invokedKT-77271KJS / Serialization: "Cannot set property message of Error which has only a getter"KT-76235[JS] Extra invalid linetmp_0.tmp00__1 = Options;in testSuspendFunction()KT-76234[JS] Extra invalid lineParentin testNested()KT-76233[JS] Extra invalid import line in testJsQualifier()KT-74839AssociatedObjectKey metadata doesn't survive incremental compilationKT-77418KJS: cannot debug with whole-program granularityKT-76463KJS:@JsPlainObjectfails in parent count is 8+KT-75606KJS: java.lang.AssertionError: Different declarations with the same signatures were detectedKT-69591KJS / d.ts: Wrong type of SerializerFactory for abstract classesKT-72437KJS. Invalidcopymethod for inherited JSO with type parametersKT-57192KJS: "Exported declaration uses non-exportable return type" caused by@JsExportPromise with Unit typeKT-73226Migrate K/JS to new IR parameter APIKT-75254KJS: Merge AbstractSuspendFunctionsLowering from Common and JS backendsKT-76440@JsPlainObjectcompiles broken code when inlining suspend function and non suspend functionKT-71169@JsPlainObjectcopy produces the wrong type when copied property is nullable in parent interfaceKT-75772KJS: NullPointerException caused by reference of private class with@JsExportKT-73363Migratejs-plain-objectsplugin to new IR parameter APIKT-64927[JS] TypeError when abstract class with override var property extends an exported abstract class with val propertyKT-70623Kotlin/JS: Incremental compilation fails when granularity is changedKT-74384Support new callable reference nodes in JS backendKT-70652Kotlin/JS:@JsExportdoesn't work with granularity per-fileKT-71365KJS. File-level export supportKT-68775Kotlin/JS infinite loop for exception message override that calls super.messageKT-42271K/JS: isInitialized for not-lateinit property isn't marked as error as in JVM projectKT-70664Extending a@JsPlainObjectinterface with a generic type parameter fails with a compile errorKT-71656K2 JS: "IllegalStateException: Class has no primary constructor: kotlin.ULong"KT-42305KJS / IR: "Class constructor is marked as private"@JsExportproduces wrong TS code for sealed classesKT-52563KJS / IR: Invalid TypeScript generated for class extending base class with private constructorKlibs
New Features
KT-72296Use specialized signatures for serialized local fake overridesFixes
KT-78168K/N: "IndexOutOfBoundsException: Index 3 out of bounds for length 3" for iOS build with Kotlin 2.2.0-RC2KT-74635KLIBs: Change call serialization scheme to store all arguments in a single listKT-76061Add option for suppress warning of missing no-existent transitive klib dependenciesKT-70146[KLIB Resolve] Don't fail on nonexistent transitive dependencyKT-75624Don't fail on an attempt to deserialize "unknown" IrStatementOrigin and IrDeclarationOriginKT-55808Support metadata version checks for klibs in the compilerKT-56062Support-Xmetadata-versionfor KLIB-based compilersKT-76158Drop "description" from local signaturesKT-75749KLIB: Fail with error on attempt to serialize/deserialize SpecialFakeOverrideSignatureKT-75941[IR Inliner] Abstract function is not implemented in non-abstract anonymous objectKT-75867The CLI argument -Xabi-version allows versions with multiple 0 and -0KT-75192KLIB reader tends to extract files from the KLIB archive to a temporary directory even when this is not neededKT-75013Make klib reader more flexible: allow empty directories to be omittedKT-75680KLIB: Drop obsolete IrPerFileLibraryImpl & IrPerFileWriterImplKT-73779[Native] Context parameters: extension receiver is preferred over context parametersKT-65375Clean-up the logic for serialization of error types in metadata and in IRKT-73826DeduplicateIrFileEntrythat is serialized insideIrInlinedFunctionBlockKT-75091Droptargets/$target_name/kotlindirectory from klibsKT-74352API4ABI: Fix representation of context parametersKT-71007Align KLIB ABI version with the language versionKT-73672Bump KLIB ABI version in 2.2.0KT-74080API4ABI: Adapt API for value parameter kindsKT-74396Support context parameters in klibsKT-72931Support new callable reference nodes in KLIB [de]serializerLanguage Design
New Features
KT-2425Multidollar interpolation: improve handling of $ in string literalsKT-1436Support non-local break and continueKT-13626Guard conditions in when-with-subjectKT-54206Support local contextual functionsFixes
KT-53673Support@DslMarkerannotations on contextual receiversKT-73557Allow refining expect declarations for platform groupsKT-72417Annotation with target RECORD_COMPONENT cannot be used on@JvmRecorddata class componentsKT-67977Compile results of annotations assigned to JvmRecord properties as in JavaKT-73502Context parameters: it is not possible to declare local function with a contextKT-73632Expect class redeclaration is allowedKT-70002[LC] Forbid using projection modifiers inside top-level Array in annotation's value parameterLibraries
New Features
KT-76163K/N: Hide or remove CreateNSStringFromKString/CreateKStringFromNSStringKT-70456Base64: Support lineLength parameter for MimeKT-76394kotlin.time.TimeSource.asClock missingKT-31857Provide easy way to retrieve annotations for kotlinx-metadataKT-76528Instant.parseOrNullKT-74804Add@MustUseValueand@IgnorableValue/@Discardableto kotlin-stdlibKT-74422KotlinWebsiteSampleRewriter should filter individual imports from samples packagePerformance Improvements
KT-68860K/JS: optimize listOf(element)KT-75647Optimized sequenceOf(T) overload is missingFixes
KT-72138Stabilize experimental API for 2.2KT-76831Atomic types: inconsistent behavior on JS and Wasm targetsKT-76795RecursiveDeletionTest.deleteRelativeSymbolicLink fails on Windows for unprivileged usersKT-75290kotlin-metadata: deprecate hasAnnotations flag, add JVM-only hasAnnotationsInBytecode insteadKT-76193Common Atomics: 'AtomicArray.compareAndSetAt' and 'compareAndExchangeAt' docs incorrectly suggest they use==when actually they use===KT-54077Consider using SecureDirectoryStream in deleteRecursively even when Path.parent is nullKT-72866Standard library functions to work with context parametersKT-76743Add kotlin-scripting-jvm to projectsUsedInIntelliJKotlinPlugin listKT-72483Clean up redundant stdlib code for Kotlin 2.2KT-76385Remove suppression from functions to work with context parametersKT-75337Remove suppress annotations from@IgnorableReturnValueKT-72137Review deprecations in stdlib for 2.2KT-75491Non intuitive work of 'in' (contains) with String rangeKT-75933Update readLine's KDoc to suggest alternative functionsKT-46360Type inference fails to infer type for sumOf call with integer literal: "Overload resolution ambiguity TypeVariable(T)) -> Int / Long"KT-73590Samplify string.splitKT-75759Add the serializer for kotlin.time.Instant to the list of standard serializersKT-71628Review deprecations in stdlib for 2.1KT-73726A link from shuffle's KDoc is not rendered properlyKT-74173The sample code oflazyon stdlib can not run on playground due to "samples" package importKT-50081AbstractList sublist leads to StackOverflowNative
KT-76992Native: update llvm for windows targetsKT-56107Support Enum.entries for C/ObjC interop enumsKT-76552LLVM Update: rebase the LLVM branchKT-76662LLVM 19 update: documentationKT-76560LLVM Update: investigate changes in filterStdargH testKT-76283LLVM Update: pass all testsKT-74377Kotlin Native: release executable crashes with error 139KT-75829LLVM Update: port K/N on LLVM 19KT-76280LLVM Update: benchmarksAnalyzer build failedKT-70202Xcode 16 Linker fails with SIGBUSNative. Build Infrastructure
KT-77349Kotlin/Native: default cache for stdlib is unusedNative. C and ObjC Import
KT-75598Native: fix samples/objc testKT-76551LLVM Update: investigate CXFile equality problem furtherKT-75781Xcode 16.3: Fix cinterop tests failing with fatal error: could not build module '_stdint'KT-74549Native: replace clang_Type_getNumProtocols/clang_Type_getProtocol with standard libclang functionsNative. Platforms
KT-74702Deprecate Windows 7 supportNative. Runtime
KT-71534Native: Support Latin-1 encoded strings at runtimeKT-67741Kotlin/Native: Unify SpecialRef handlingNative. Runtime. Memory
KT-74831Kotlin/Native: investigate mmap usage in custom allocatorKT-74432Native: add an option to allocate everything in SingleObjectPageKT-74975Enable CMS by default in Swift exportKT-60928Kotlin/Native: refactor allocator codeKT-50291Kotlin/Native: remove dependency of mm on gc implementationNative. Swift Export
KT-75166Support export of platform libraries types in Swift exportKT-75079Swift export: add dependency from sir-compiler-bridge to Analysis APIKT-72413Swift Export: potential memory leak when best-fitting class is different from the formal typeKT-72107Remove IntoSingleModule stratagyTools. Ant
KT-73116Deprecate Ant supportTools. BCV
KT-75686Improve DSL for BCV in KGPKT-76129Abi validation filtering functionality for included classes doesn't workKT-75999ABI validation filter doesn't apply excluded kotlin filesKT-75981ABI validation filter not applying excluded classes without package namesKT-71168Implement a prototype of ABI Validation in Kotlin Gradle PluginTools. Build Tools API
KT-76455BTA: Compilation is always non-incremental if BTA API >= 2.2.0 is used together with BTA impl < 2.2.0KT-76060BTA: Java sources passed for IC may fail compilation in non-incremental modeKT-74041Build Tools API: Lower level or remove compiler arguments logTools. CLI
New Features
KT-73606Provide a unified interface for managing the reporting of compiler warningsKT-24746Provide ability to exclude specific warnings from compiler option Werror (all warnings as errors)KT-18783Option to treat a specific compiler warning as an errorKT-76095Add JVM target bytecode version 24KT-73007Add stable compiler argument -jvm-default instead of -Xjvm-defaultPerformance Improvements
KT-75641kotlinc -help spends almost 1 second on Usage.render()Fixes
KT-77445UNRESOLVED_REFERENCE when importing classes from kotlin-stdlibKT-75300Lenient compiler mode which generates stubs for missing actualsKT-76829UnsupportedOperationException when reenabling a taking place warning with -Xwarning-levelKT-75588[2.1.20-RC] "was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler" warnings despite using the same compiler versionKT-74663kotlinc-js CLI: not providing -ir-output-dir results in NullPointerExceptionKT-75967Implement generation of CLI arguments in compiler using new single representationKT-75966Declare all existing CLI arguments using the new DSLKT-76498Implement JSON dumper for performance statsKT-75970Extract all non-trivial logic fromCommonCompilerArgumentsand its inheritorsKT-73595Kapt.use.k2=true is ignored silently for language-version 1.9 or lessKT-75043Migrate Metadata compilation pipeline to the phased structureKT-75113TEST_ONLY LanguageFeature doesn't abort the compilationTools. CLI. Native
KT-69485Native: remove adding $llvmDir\bin to PATH on WindowsTools. Commonizer
KT-74623Drop metadata version check from KLIB commonizerTools. Compiler Plugin API
KT-74640[FIR] Support settingsourcein declaration generatorsTools. Compiler Plugins
Fixes
KT-76162"IllegalStateException: No mapping for symbol: VALUE_PARAMETER INSTANCE_RECEIVER" after updating to 2.1.20KT-61584[atomicfu]: prohibit declaration of AtomicReference to the value class in the compiler pluginKT-70982Deprecate declaration of atomic properties marked with@PublishedApiwith errorKT-73367Migrate compose plugin to new IR parameter APIKT-76429Migrate kotlin-dataframe plugin to new IR parameter APIKT-75263PowerAssert: no additional info is displayed for 'when' with subjectKT-75614PowerAssert: handling of exceptions doesn't work inside assert functionKT-75264PowerAssert: the diagram for try-catch with boolean expressions isn't clearKT-75663PowerAssert: 'contains' result for strings is displayed under the first parameter instead of 'in'KT-73897PowerAssert: Implicit argument detection is brittle in a number of casesKT-74315Kotlin Lombok: "Unresolved reference" on generating@Builderfor static inner class where outer class is also using@BuilderKT-72172File Leak occurring in Kotlin DaemonKT-75159Compose: Missing 'FunctionKeyMeta' annotation on lamdas declared in non-composable functionKT-72877Power-Assert should provide IrExpression transformation APIKT-73871PowerAssert: Comparison via operator overload results in confusing diagramKT-73898PowerAssert: Operator calls with multiple receivers incorrectly alignedKT-73870PowerAssert: Object should not be displayedTools. Compiler plugins. Serialization
KT-49632Provide diagnostic when custom serializer for generic type does not have required constructor signature ( ISE Null argument in ExpressionCodegen for parameter VALUE_PARAMETER)Tools. Gradle
New Features
KT-75823Resources bundle with XCFrameworks for iOSKT-73418Gradle '--warning-mode' value should affect Gradle plugin diagnosticsKT-73906Improve ToolingDiagnostic CLI renderingKT-73285Integrate Gradle Problem API with KGP diagnosticsKT-61649Add Gradle compiler option for jvm-defaultKT-68659Collect reported Kotlin Gradle Plugin diagnostics into one HTML/Text file report instead of writing it to logFixes
KT-75188Groovy plugin breaks access to internal members of test friendPaths classes in kotlin compilationKT-54110Change deprecation level to ERROR for kotlinOptions DSLKT-74277KGP / FreeBSD: "TargetSupportException: Unknown operating system: FreeBSD" during the buildKT-75820Gradle: "ClassNotFoundException: intellij.util.containers.Stack" while parsing compilation warnings with IN_PROCESS execution strategyKT-64991Change deprecation level to error for KotlinCompilation.sourceKT-75107Add Gradle property to use new FIR IC runnerKT-66133Finalize resolution strategy for resources and remove the one that is unusedKT-59632KotlinCompileTool.setSource() should replace existing sourcesKT-62963Remove "kotlin.incremental.useClasspathSnapshot" propertyKT-76137Compatibility with Gradle 8.14 releaseKT-76797KGP: StdlibDependencyManagementKt.configureStdlibVersionAlignment() triggering eager configuration realizationKT-76282Add missing Android Gradle plugin versions in testsKT-77011Update build regression benchmarks for 2.2.0 releaseKT-76138Compile against Gradle API 8.14KT-76139Run integration tests against Gradle 8.14KT-74007Not all the DSL features related to kotlinOptions are deprecatedKT-77288Using 'KotlinJvmOptions' is an error - Gradle sync issue when using 2.2.0-Beta2 with Android Gradle PluginKT-74887Compatibility with Gradle 8.13 releaseKT-73682Compatibility with Gradle 8.12 releaseKT-77035A compiler diagnostic isn't reported when its severity is set to warning with GradleKT-70620Raise to error deprecation for KotlinCompilationOutput#resourcesDirProviderKT-68597Update KGP deprecations before 2.2KT-68325Add to Compiler Types DSL exceptions message possible ways of a solutionKT-76951'distribution-base' plugin is only applied in Gradle 8.13KT-73142Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilderKT-73968KotlinDependencyManagement tries to mutate configuration after it was resolvedKT-74890Run Gradle integrations test against Gradle 8.13 releaseKT-74889Compile against Gradle 8.13 APIKT-76052Support Gradle 8.13 for Problems APIKT-73684Run integration tests against Gradle 8.12KT-76377Add integration tests for Problems APIKT-74551Improve KGP-IT withDebug for tests with environment variablesKT-74717Test publication with dependency constraintsKT-75164Run Gradle incremental compilation tests with FIR runnerKT-72694Accessing Task.project during execution is being deprecated in Gradle 8.12KT-76374Investigate and fix failing tests with configuration cache in KotlinDaemonIT: testDaemonMultiproject and testMultipleCompilationsKT-76379Gradle: KotlinGradleFinishBuildHandler does not perform cleanup on configuration cache reuseKT-61911Gradle: make KGP to depend on fixated version of stdlibKT-76026[ToolingDiagnostic] Gradle warning mode=fail: no emoji replacement, title color unchangedKT-76025ToolingDiagnostic with FATAL Severity: ANSI escape codes are not rendered properly in the Build tool window in IntelliJ IDEAKT-70252Gradle: remove Intellij dependencies from KGP runtimeKT-74333improve ToolingDiagnosticBuilderKT-73683Compile against Gradle API 8.12KT-75187Make KotlinToolingDiagnostics internalKT-75568Do not use env variables registered as CC inputsKT-73842Gradle: AGP failing tests with "Failed to calculate the value of property 'generalConfigurationMetrics'" using KGPKT-75262Gradle test-fixtures plugin apply order breaks the projectKT-75277FUS statistics: 'java.lang.IllegalStateException: The value for this property cannot be changed any further' exception is thrown during project importKT-75026Corrupted NonSynchronizedMetricsContainer in parallel Gradle buildKT-73849Categorize ToolingDiagnosticsKT-74462Flaky Kotlin Gradle Plugin Tests: IsInIdeaEnvironmentValueSource$Inject not foundKT-72329Consider bumping apiVersion for projects with compatibility setupKT-74772ToolingDiagnostic: title is not displayed on WindowsKT-74485BuildFinishedListenerService is not thread-safeKT-74639Executable binaries for JVM test cannot be created unless an additional suffix is set in GroovyKT-72187Gradle tests are using incorrect Kotlin/Native distributionKT-57653Explicit API mode is not enabled when free compiler arguments are specified in Gradle projectKT-51378Gradle 'buildSrc' compilation fails when newer version of Kotlin plugin is added to the build script classpathTools. Gradle. Compiler plugins
KT-58009BaseKapt.annotationProcessorOptionProvidersshould be aList<CommandLineArgumentProvider>instead ofList<Any>KT-61928Clarify parameter types in KaptArguments and KaptJavacOptionTools. Gradle. JS
KT-74859Gradle configuration cache issues related to RootPackageJsonTaskKT-70357Remove JS/Dce deprecated Gradle DSLKT-71217KJS: 'Per-file' "Module not found: Error: Can't resolve void.mjs"KT-77119KJS: Gradle: Setting custom environment variables in KotlinJsTest tasks no longer worksKT-74735KGP uses Gradle internalCompositeProjectComponentArtifactMetadataKT-71879Notice of upcoming deprecation for Boolean 'is-' properties in Gradle Groovy scriptsKT-75863Wasm/JS: Deprecate phantom-js for KarmaKT-75485KJS: "Module not found: Error: Can't resolve 'style-loader' and 'css-loader'" in 2.1.20-RCKT-74869KJS:jsBrowserProductionWebpackdoes not minify output with 2.1.20-Beta2Tools. Gradle. Multiplatform
New Features
KT-60623DeprecatepublishAllLibraryVariantsin kotlin-androidFixes
KT-75161Deprecate commonization parameters in KGP with an errorKT-74005Implement a prototype of Unified Klib support in Kotlin Gradle PluginKT-61817Remove support for Legacy Metadata Compilation with support of Compatibility Metadata VariantKT-71634KGP: Remove KotlinTarget.useDisambiguationClassifierAsSourceSetNamePrefix and overrideDisambiguationClassifierOnIdeImportKT-77404The kotlin-stdlib and annotations are missing from commonTest dependencies with 2.2.0-Beta1KT-62643Increase DeprecationLevel to 'Error' on deprecated 'ExtrasProperty.kt' (Kotlin 2.2)KT-75605Dependency resolution fails in commonTest/nativeTest source sets for KMP module when depending on another project due to missing PSMKT-71698Remove preset APIsKT-68015Remove legacy KMP flagsKT-74727Dependency resolve from a single target KMP module to another kmp module fails on non-found PSMKT-75808KGP: MPP with jvm target and Gradle java-test-fixtures is brokenKT-59315Improve the readability of KGP diagnostics in CLI build outputKT-58231Kotlin Gradle Plugin: set deprecation level to Error for KotlinTarget.useDisambiguationClassifierAsSourceSetNamePrefix and overrideDisambiguationClassifierOnIdeImportKT-66423Configuration cache false recalculation because of Kotlin Native downloading during the execution phaseKT-74888Use 'distribution-base' plugin in KMP/JVMKT-76659Write proper diagnostics for Uklib checksKT-70493Improve gray-box testing experience in KGP-ITKT-71608Remove 'android()' targetKT-75512Maven-publish: ArtifactId is not correct inpomfile with customizedwithXmlKT-72203Swift Export: Unclear failure for invalid module nameKT-74278KSP tasks don't trigger a K/N distribution downloadingKT-74669Executable binaries for JVM: a jar generated by jvmJar task isn't added to the build/install/testAppName/lib directoryKT-69200Module 'intellij.kotlin.gradle.multiplatformTests' transitively depends on K1/K2 implementationKT-71454Remove not compatible with Project Isolation PomDependenciesRewriterKT-73536Enable kmp isolated projects support for kotlin-test and patch PSM.jsonTools. Gradle. Native
KT-77067Kotlin Gradle plugin with the configuration cache passes all platform libraries to the compiler when compiling a binary for the first timeKT-74953Deprecate kotlinArtifacts with a warningKT-71069RemovekonanVersionfrom CInteropProcessKT-75171Provide custom freeCompilerArgs to Swift Export's link taskKT-74591HostManager.isMingw isLinux and isMac are not accessible in groovy scriptsKT-65692Remove Kotlin Native Performance pluginKT-74403:commonizeNativeDistribution fails when configured native targets cannot be built on machineTools. Gradle. Xcode
KT-66262Deprecate and remove support for bitcode embedding from the Kotlin Gradle pluginTools. Incremental Compile
KT-62555Wrong ABI fingerprint for inline function containing a lambdaKT-75883Follow-up: switch from INSTANCE heuristic to outerClass chainKT-75276Test IC issues with first-round failures that might be fixed by Fir runnerKT-76041Make lenient mode work with ICKT-75155Split HistoryFileJvmIncrementalCompilerRunner and the current oneKT-74628Incremental compilation runner does not check compiler exit code before mapping sources to classesTools. JPS
KT-60914IC misses dependency to recompile when named kt file with JvmField instructed property was replaced with an object with the same nameKT-76495JPS: delegated Maven builds use embeddable version of kotlin-serialization compiler plugin with non-embeddable Kotlin compilerKT-76461Fix "compilation of typealias does not check for clashes" for JPSKT-75917Unused imports may lead to inc compilation failureKT-73379Review the usage of JavaBuilder.IS_ENABLED inside the KotlinBuilder JSP builderKT-63707JPS: "Multiple values are not allowed for" caused by ComposeTools. Kapt
KT-75936K2 KAPT: unsupported FIR element kinds in constant evaluationKT-64385K2: Enable K2 KAPT by defaultKT-76546Kapt / CLI: ""compile" mode is not supported in Kotlin 2.x" with -version flagKT-75942K2 KAPT: underscore not allowed hereKT-40485-Xjvm-default=all causes private interface methods to be generated in JVM target < 9 which is not supported in annotation processingKT-75202K2 kapt: mapped type class literal is converted incorrectlyKT-70797Remove obsolete K2 kapt implementation based on Analysis APITools. Maven
KT-73012Migrate Kotlin Maven plugin to the Build Tools APIKT-77036Kotlin Maven plugin: ClassNotFoundException com.google.common.base.Joiner with compiler plugins in debug modeKT-61285Remove multiplatform "support" from Maven PluginTools. Performance benchmarks
KT-75563Fix crash on kotlin compiler server user project related to performance measurementsTools. REPL
Fixes
KT-75632Contunue deprecation of the REPL built intokotlincKT-76507[K2 Repl] Delegated properties are not visible in the next snippetKT-76508[K2 Repl] Annotations on property accessors are not resolvedKT-75672[K2 Repl] Serialization plugin crashes compiler backendKT-76009[K2 Repl] Kotlin-specific imports does not work if dependency is added to the classpath after 1st snippetKT-75580[K2 Repl] Cannot access snippet properties using Kotlin reflectionKT-75616[K2 Repl] Sealed hierarchies causes a FileAnalysisExceptionKT-75593[K2 Repl] Custom Delegates crash code genKT-75607[K2 Repl] ScriptingConfiguration.jvm.jvmTarget is not respectedKT-74607[K2 Repl] Lambda statement crashes code generationKT-74615[K2 REPL] Anonymous objects crash code generationKT-74856[K2 Repl] Snippet class files are missing Kotlin metadataKT-74768[K2 Repl] refineConfiguration does not update the classpath correctlyKT-74593[K2 Repl] defaultImports does not work in ScriptCompilationConfigurationTools. Scripts
KT-75589Scripts: "IndexOutOfBoundsException in jdk.internal.util.Preconditions.outOfBounds" when trying to extend a class which uses global variableKT-76424Dependencies in main.kts not working with 2.1.20KT-76296Kotlin script compiler crashes when secondary constructor calls a functionKT-76430Migrate scripting plugin to new IR parameter APIKT-74004"Evaluate expression" fails in scriptsTools. Wasm
KT-76161Wasm: "export startUnitTests was not found" after updating to Kotlin 2.1.20KT-73398K/Wasm: Separate from JS NPM infrastructureKT-76948Wasm: Rename kotlinBinaryenSetup and kotlinD8SetupKT-74840Wasm: Binaryen setup per projectKT-76657K/Wasm: Composite build does not work with wasm tasksKT-76656K/Wasm: Change NPM project name of wasm projectsKT-76587Wasm lock check failure says to run the JS lock upgradeKT-76330K/Wasm: update binaryen to 123 or newerKT-74480Projects using Compose don't run in Android Studio started from 2.1.20- Kotlin versionv2.1.21: Kotlin 2.1.21Changelog
Backend. Native. Debug
KT-75991Xcode 16.3: Fix lldb stepping test over an inline functionCompiler
KT-75992Xcode 16.3: stacktraces on simulators are not symbolicatedKT-76663KJS: KotlinNothingValueException caused by expression return since 2.1.20KT-75756Backend Internal error: Exception during IR lowering when trying to access variable from providedProperties in class within kotlin custom scriptKT-76209CONFLICTING_UPPER_BOUNDS onNothingboundKT-70352K2: False-negative CONFLICTING_UPPER_BOUNDS onNothingboundKT-74739Native: "IllegalArgumentException: All constructors should've been lowered: FUNCTION_REFERENCE"KT-75483Native: redundant unboxing generated with smart castKT-71425IR Inliner: investigate return type of an inlined blockNative
KT-76252Native: executable crash with generic value classes with 2.1.20Native. C and ObjC Import
KT-75781Xcode 16.3: Fix cinterop tests failing with fatal error: could not build module '_stdint'Native. Runtime. Memory
KT-74280Native: GC.collect crashes with -Xallocator=stdTools. CLI
KT-75588[2.1.20-RC] "was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler" warnings despite using the same compiler versionKT-74663kotlinc-js CLI: not providing -ir-output-dir results in NullPointerExceptionTools. Compiler Plugins
KT-76162"IllegalStateException: No mapping for symbol: VALUE_PARAMETER INSTANCE_RECEIVER" after updating to 2.1.20Tools. Gradle
KT-73682Compatibility with Gradle 8.12 releaseKT-73142Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilderKT-36004Update 'org.gradle.usage' attribute rules to support the 'JAVA_API' and 'JAVA_RUNTIME' valueKT-73968KotlinDependencyManagement tries to mutate configuration after it was resolvedKT-73684Run integration tests against Gradle 8.12KT-72694Accessing Task.project during execution is being deprecated in Gradle 8.12KT-73683Compile against Gradle API 8.12Tools. Gradle. JS
KT-77119KJS: Gradle: Setting custom environment variables in KotlinJsTest tasks no longer worksKT-74735KGP uses Gradle internalCompositeProjectComponentArtifactMetadataKT-71879Notice of upcoming deprecation for Boolean 'is-' properties in Gradle Groovy scriptsTools. Gradle. Multiplatform
KT-75808KGP: MPP with jvm target and Gradle java-test-fixtures is brokenKT-75605Dependency resolution fails in commonTest/nativeTest source sets for KMP module when depending on another project due to missing PSMKT-75512Maven-publish: ArtifactId is not correct inpomfile with customizedwithXmlTools. Incremental Compile
KT-62555Wrong ABI fingerprint for inline function containing a lambdaKT-75883Follow-up: switch from INSTANCE heuristic to outerClass chainTools. Kapt
KT-75936K2 KAPT: unsupported FIR element kinds in constant evaluationKT-75942K2 KAPT: underscore not allowed hereTools. Scripts
KT-76424Dependencies in main.kts not working with 2.1.20KT-76296Kotlin script compiler crashes when secondary constructor calls a functionKT-75589Scripts: "IndexOutOfBoundsException in jdk.internal.util.Preconditions.outOfBounds" when trying to extend a class which uses global variableTools. Wasm
KT-76161Wasm: "export startUnitTests was not found" after updating to Kotlin 2.1.20Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this MR and you won't be reminded about this update again.
This MR has been generated by Mend Renovate CLI.
mentioned in issue #2
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.