Releases: JetBrains/kotlin
Releases · JetBrains/kotlin
Kotlin 2.2.21
Changelog
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 interfaces
JavaScript
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 literal
Native
KT-79384K/N: Application Not Responding: Thread Deadlock
Tools. 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 applied
Tools. 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 Parcelize
Tools. 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 failure
Tools. Maven
KT-81218Kotlin Maven Plugin 2.2.20: Java classes not resolved with enabled incremental compilation without daemon
Tools. Wasm
KT-80582Multiple reloads when using webpack dev server after 2.2.20-Beta2
Kotlin 2.2.21-RC2
Kotlin 2.3.0-Beta1
Changelog
Analysis API
KT-80303Move:native:analysis-api-klib-readerto:libraries:tools
Analysis API. Code Compilation
KT-80227Support unnamed context parameters in evaluationKT-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 classes
Analysis API. FIR
KT-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 FirUserTypeRefImpl
Analysis API. Infrastructure
KT-80717Support IntelliJ Bazel build in the Kotlin Coop development mode
Analysis 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-79012Add a high-level overview of light classes
Analysis API. Providers and Caches
KT-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 providers
Analysis API. Standalone
KT-80573Potential performance issue on class ID computationKT-80559Try to optimize KotlinStandaloneDeclarationProviderFactory startup for testsKT-71706Analysis API Standalone:StandaloneProjectFactory.createSearchScopeByLibraryRootscreates inefficient file-based search scopes
Analysis API. Stubs and Decompilation
Performance Improvements
KT-77097SupportReplaceWithdeprecation annotation argument via stubs
Fixes
KT-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-80350Drop K1 decompilerKT-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 stubs
Analysis API. Surface
New Features
KT-64340Analysis API: no way to get a type of vararg parameterKT-68387AA: provide context for type approximations
Performance Improvements
KT-80713Optimize KaDeclarationSymbol#visibility for class-like symbolsKT-79097KaFirNamedFunctionSymbol#isSuspend shouldn't trigger resolutionKT-79095isOverride shouldn't trigger resolution if not compiler plugins present
Fixes
KT-78093Add bridges for context parametersKT-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-80234Incorrect value ofisActualfor the implicitlyactualconstructor of annotation classKT-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 thr...
Kotlin 2.2.21-RC
Changelog
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 interfaces
JavaScript
KT-80873KJS: Stdlib requires ES2020-compatible JS engine due to BigInt type literalKT-79926Wrong export of interfaces with companions with ES Modules
Native
KT-79384K/N: Application Not Responding: Thread Deadlock
Tools. Gradle
KT-81148Publishing helpers in KGP are incompatible with Isolated ProjectsKT-80950KGP breaks configuration cache when signing plugin with GnuPG is appliedKT-79047Gradle compileKotlin fails with configuration cache
Tools. Gradle. Multiplatform
KT-81249Kotlin 2.2.20 broke KMP implementation of ParcelizeKT-61127Remove scoped resolvable and intransitive DependenciesMetadata configurations used in the pre-IdeMultiplatformImport IDE import
Tools. Gradle. Native
KT-77732commonizeCInteropfailed with "Unresolved classifier: platform/posix/size_t"KT-80675Commonized cinterops between "test" compilations produce an import failure
Tools. Maven
KT-81218Kotlin Maven Plugin 2.2.20: Java classes not resolved with enabled incremental compilation without daemon
Tools. Wasm
KT-80582Multiple reloads when using webpack dev server after 2.2.20-Beta2
Kotlin 2.2.20
Changelog
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-site
Analysis 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 brace
Analysis 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 declarations
Fixes
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 to
Analysis API. Infrastructure
KT-76809Analysis API: Dependent analysis tests frequently work with the original element instead of the copied element
Analysis 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 container
Analysis 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 code
Analysis API. Standalone
KT-78638Analysis API Standalone: Stdlib builtins are not indexed inSTUBSdeserialized declaration origin mode
Analysis 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 parameters
Analysis API. Surface
New Features
KT-73473Provide KaExpressionInformationProvider.isUsedAsResultOfLambdaKT-77278Implement psi-basedKaFirKotlinPropertyKtPropertyBasedSymbol#hasBackingFieldKT-70770KaLocalVariableSymbol: supportisLateInit
Performance Improvements
KT-78526Get rid of redundantcheckValidityfromwithPsiValidityAssertion
Fixes
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-63464...
Kotlin 2.2.20-RC2
Changelog
Backend. Wasm
KT-80106devServer in Kotlin/Wasm overwrites defaults, causing missing static paths
Compiler
KT-80285IJ monorepo: broken compilation after 2.2.20-RC updateKT-79816Java Interfaces implemented by delegation have non-null return checks
Native. C and ObjC Import
KT-79571Xcode 26 beta 4: CInteropKT39120TestGenerated.testForwardEnum failed
Tools. Gradle
KT-80172Error message changes depending on the order of applying 'org.jetbrains.kotlin.android' and 'AGP' 9.0+ with built-in Kotlin plugin
Tools. Gradle. Native
KT-74864Enable exporting KDocs by default to ObjC
Kotlin 2.2.20-RC
Changelog
Backend. Wasm
KT-80018K/Wasm: exceptions don't work properly in JavaScriptCore (vm inside Safari, WebKit)
Compiler
KT-79979K2: ClassCastException when overriding extension property with delegationKT-79866kotlinc 2.2.0 silently emits 'NonExistentClass' instead of reporting an errorKT-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-79547"UnsupportedOperationException: Not supported" with inlining and value classesKT-79519Nested type alias is unreachable from another module
Compose compiler
b/432262806Fix target description lookupb/436870733Prevent lambda memoization in local classes inside a composableb/432485982Fix AbstractMethodError when overriding function with default parameters
JavaScript
KT-79916K/JS: "Uncaught TypeError" when using 'Xes-long-as-bigint' in compose-htmlKT-79977KJS: Long.rotateLeft returns incorrect result when BigInts are enabledKT-79644BigInt enabled for ES 2015 despite being an ES 2020 featureKT-79089KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode tests
Native
KT-79075Stuck on Kotlin_getSourceInfo_core_symbolication
Tools. Compiler plugins. Serialization
KT-79695Serialization does not exclude field-less properties in 2.2.20-Beta2
Tools. Gradle. JS
KT-79921Web Tooling Gradle API does not respect webpack reconfigurationKT-76996Wasm: js tasks triggers wasm subtasks
Tools. Gradle. Swift Export
KT-79554Swift Export status diagnostic is produced even if swift export is not configured
Tools. Kapt
Kotlin 2.2.10
Changelog
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 information
JavaScript
KT-79050KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79089KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode tests
Native
KT-79075Stuck on Kotlin_getSourceInfo_core_symbolicationKT-76178LLVM Update: symbol '__ZnwmSt19__type_descriptor_t' missing
Native. Runtime. Memory
KT-78925Crash SIGABRT on Apple Watch after updating Kotlin to 2.2.0
Tools. 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 master
Tools. 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-friendly
Tools. Gradle
KT-77023Support creating KotlinJvmAndroidCompilation in KotlinBaseApiPlugin
Tools. Gradle. JS
KT-78504[2.2.0-RC3] NPM Tasks in 2.2 RCs produce broken/unusable build cache entries
Tools. Gradle. Multiplatform
KT-77466KMP - testFixturesApi and similar configurations do not affect jvmTestFixtures source setKT-68646Compose extension's metrics/reports dir should use subdirs based on target
Tools. Gradle. Native
KT-77977"Unknown hardware platform: riscv64" on JVM project build
Tools. Incremental Compile
KT-78807Changing ABI fingerprint on non-ABI changes when lambda passed to inlined function
Tools. Kapt
Kotlin 2.2.10-RC2
Changelog
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-Beta2
JavaScript
KT-79050KJS / IC: "Unexpected body of primary constructor for processing irClass"KT-79089KJS: Could not load reporter / Cannot find module 'mocha' when running jsNode tests
Native
KT-79075Stuck on Kotlin_getSourceInfo_core_symbolicationKT-76178LLVM Update: symbol '__ZnwmSt19__type_descriptor_t' missing
Tools. Kapt
KT-79138K2: KAPT Java Stub Gen:Unresolved referencewith@kotlin.Metadata in Java in 2.2.0
Kotlin 2.2.20-Beta2
Changelog
Analysis 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 modules
Analysis API. FIR
KT-72227SOE from recursive value classKT-68977K2 IDE: Reference to companion object through typealias in a function call does not workKT-76490Do not load ast during the contracts phase if no contracts presentKT-72407FirImplementationByDelegationWithDifferentGenericSignatureChecker: FirLazyExpression should be calculated before accessing
Analysis API. Light Classes
KT-78065Support "Expose boxed inline value classes" in Light ClassesKT-78835Find usages of a light constructor from a class with an empty body finds usages of class as well
Analysis API. Providers and Caches
KT-78640Analysis API: Remove "friend builtins provider" fromFirDeclarationForCompiledElementSearcher
Analysis API. Standalone
KT-78638Analysis API Standalone: Stdlib builtins are not indexed inSTUBSdeserialized declaration origin mode
Analysis API. Surface
New Features
KT-73473Provide KaExpressionInformationProvider.isUsedAsResultOfLambda
Performance Improvements
KT-78526Get rid of redundantcheckValidityfromwithPsiValidityAssertion
Fixes
KT-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-73184Analysis API: KaFunctionCall.argumentMapping is unexpectedly deparenthesisedKT-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-77674Analysis API: Redundant smart cast to the original type
Backend. Wasm
New Features
KT-65721K/Wasm: stop unconditionally exporting any main function from the root package
Fixes
KT-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-66072K/Wasm: improve how exceptions work in JS interopKT-78384K/Wasm: Incorrect debug info of local declarations in inline function from another fileKT-71533K/Wasm + K2: no error on KClass::qualifiedName usagesKT-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-69570K/Wasm: JsExport with default parameter value compiles to invalid Wasm
Compiler
New Features
KT-78792Report warning for redundant return in expression bodyKT-45683Allow generics in contract type assertionsKT-71244Incorporate existing@CheckReturnValueannotation(s) into Kotlin's unused return value checkerKT-32313Support contracts for operator functionsKT-76766Warning is missing for wrong subclass checkingKT-65688Generate when-expressions over final classes via invokedynamic typeSwitch + tableswitch on JDK 21+
Performance Improvements
KT-78672Consider having FirCallableSymbol.callableId null for local properties / parametersKT-77839K2: consider not creating CallableId for value parameters / variables / fields
Fixes
KT-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-79442"Multiple annotations of type kotlin.coroutines.jvm.internal.DebugMetadata": 2.2.0-Beta1 generates broken code with JVM default suspend methods in interfacesKT-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-77401[FIR]ParameterNameTypeAttribute.namedoesn't support@ParameterNamewith compile-time constant property argumentKT-77986K2: False negative: "Local classes are not yet supported in inline functions"KT-78843FIR tree: comments within String concatenation aren't visited in 2.2.0KT-76477Kotlin/Native: fix compiler performance reporting in sources->klib and klibs->binaryKT-78589"Class does not have member field" caused by delegation from a Java to Kotlin classKT-79076'IllegalStateException: Cannot serialize error type: ERROR CLASS: Uninferred type' with Exposed column using recursive generic typeKT-78726Split runPsiToIr phase into runPsiToIr and runIrLinkerKT-77672K/N: come up with a fallback strategy for the casts optimization passKT-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-79085Adding-Xreturn-value-checker=fullto kotlinc causes "error: conflicting overloads"KT-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.5- [
KT-78351...