Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                

FSharp.Compiler.Service

F# 11.0.200 - Not on NuGet

Added

  • Add a read-only repository review agent for performance-improvement PRs to assess measurement quality, behavior preservation, and implementation risk using source-attributed review precedents. (PR #20619)
  • Completion: respect EditorBrowsableAttribute (PR #20729)
  • Runtime-async sequences allow awaits inside try/with bodies, filters and handlers, and reject overlapping MoveNextAsync calls. (PR #20655)
  • F# Interactive gains a JSON-RPC server mode, --fsi-server-jsonrpc:<pipe name>, in which a host submits interactions over a named pipe and receives structured results — diagnostics with positions, escaping exceptions, the values each interaction bound, and the session's own process id — instead of recovering them by looking for a SERVER-PROMPT> marker in the output text. Program output continues to flow through the redirected console streams. The pipe admits only the user running the session; --fsi-server-client-pid:<pid> names the host process whose exit ends the session. FsiEvaluationSession exposes both options as JsonRpcServerPipeName and JsonRpcClientProcessId. The mode is part of the .NET fsi only. (PR #20396)
  • Include individual active-pattern cases from unopened modules in pattern completion. (PR #20719)

Fixed

  • Fix --pathmap not producing path-independent binaries for portable PDBs: the debug directory was reserved from the original PDB path rather than the mapped one, so output retained padding proportional to the original path's length. (PR #20509)
  • Capture diagnostics emitted when transparent project checking finishes a project, including FS0247 for namespace-module name collisions. (Issue #6036, PR #20706)
  • Fix false IDE type-mismatch diagnostics for interpolated strings with multiple formatted holes. (Issue #20752, PR #20775)
  • Checker: report Bind resolution failures at the bound expression (PR #20747)
  • Fix invalid IL (InvalidProgramException) when a statically compiled task { } or other resumable state machine accesses a ResumableStateMachine<_> of a different instantiation than its own, such as a ResumableStateMachine<string> field. (Issue #20958, PR #20959)
  • A project reusing cached framework imports is checked with its own --pathmap instead of the map of the project that filled the cache, so the ranges of its in-memory reference data name its real files. (Issue #20474, PR #20476)
  • With the transparent compiler, a file's warn directives (#nowarn and #warnon) apply when the file is checked again after a referenced assembly changed, and when the file was parsed on its own before the check. (PR #20978)
  • Split Linux CoreCLR CI into two parallel test batches to reduce test turnaround time. (PR #20587)
  • Fix wrong results or non-terminating loops in optimized code when an integer for loop's start or end expression binds a local. (Issue #20732, PR #20733)
  • Checker: resolve named arguments of failed and unfinished method calls (PR #20749)
  • Checker: recover on optional named arguments in attributes (PR #20992)
  • Fix NativePtr.stackalloc used inside the with handler, filter or finally block of a try expression producing an assembly that throws InvalidProgramException at method load. Direct or mandatory-inline allocations are now reported at compile time as error FS3924; calls to non-inline allocation helpers, including handler-local helpers, remain legal and retain their method boundary during inlining and let-binding elimination. (Issue #20295, PR #20491)
  • Correct FS3880 guidance in the compiler and F# Interactive to identify .NET SDK 10.0.1xx as the last compatible SDK feature band for out-of-support language versions. (Issue #20666, PR #20795)
  • Preserve SRTP code generation when extension constraint solutions are disabled. (PR #20773)
  • FsiEvaluationSession.EvalInteraction and EvalInteractionNonThrowing evaluate every ;;-separated interaction in the text they are given, as their documentation has always said, instead of silently discarding everything after the first. (PR #20396)
  • Fix NullReferenceException when compiler phases are timed while several compilations write binaries at the same time; each binary write now times its own phases. (Issue #20973, PR #20974)
  • Fix runtime-async callbacks chosen by a branch rerunning their setup and losing shared state on each call, Await inlined into a with handler not being rewritten, and Await in an object-expression base constructor call not being reported. (Issue #20577, PR #20647)
  • Fix invalid IL (stack underflow) when raise is used in an argument position and building its exception spills the stack. (Issue #20871, Issue #20564, PR #20885)
  • Inline members can now call inline base-class members with optimizations off while retaining debugger step-into. Uneliminated base references report FS3925 instead of an internal error. (Issue #20614, PR #20639)
  • Prevent InvalidProgramException when runtime async awaits a Task<T> upcast to Task, including through ConfigureAwait. (Issue #20686, PR #20726)
  • Struct/reference anonymous-record mismatches now name anonymous records rather than tuples. (Issue #6110, PR #20681)
  • Preserve constraint inference order when explicit generic arguments share a caller type parameter, avoiding spurious FS0001 errors with multiply implemented generic interfaces. (PR #20491)
  • Restore NativeAOT execution of printf-formatted interpolated strings such as zero-padded timestamps, while preserving reflection-free interpolation fast paths and avoiding spurious function-hole warnings or repeated hole typechecking. Reject incorrectly typed printf thunks at compile time, including when the interpolated string is used as an object or interface. (Issue #20757, PR #20778)
  • GetProjectSnapshotFromScript uses the document source of the checker when none is passed, also for the TransparentCompiler's GetProjectOptionsFromScript. A file from a DocumentSource.Custom keeps its snapshot version until its text changes, and a file for which the source returns None is read from disk. FSharpFileSnapshot.CreateFromDocumentSource now returns Async<FSharpFileSnapshot>. SourceTextNew.ofISourceText returns an ISourceTextNew unchanged, and otherwise computes the checksum from the text instead of from ToString(). (Issue #20750, PR #20751)
  • Build parser diagnostic messages without runtime printf specialization or reflective function construction, so Native AOT hosts report indentation and invalid-character diagnostics instead of failing during formatting. Preserve #r reference tooltips while script project options remain alive, including after garbage collection or cache eviction. (PR #20658)
  • Fix invalid IL and InvalidProgramException in unoptimized debug builds for non-tail matches whose final rule binds a parameterized total active pattern. (Issue #20910, PR #21003)
  • Preserve tupled lambda argument groups when reducing state-machine applications, avoiding invalid argument substitutions and runtime failures with inline formatters. (Issue #20675, PR #20700)
  • Transparent compiler: ParseFile no longer imports the references of the project, which also type checked the projects it references. Parsing only needs the compiler options of the project. (PR #20704)
  • Fix FS1114 when a member uses an inline member of the same recursive group through an operator or other inline function, for example a * x with static member inline (*). The optimizer now optimizes an inline member on demand, when it is first used. (Issue #21016, PR #21017)
  • Preserve SRTP extension scopes across source files and competing witnesses through imported inline calls. Compile generic extension forwarding, including quotations, in unoptimized builds. Preserve applicable built-in operator priority in imported inline quotations. Do not reuse SRTP specializations across different selected witnesses. (Issue #20683, Issue #20684, Issue #20685, PR #20717)
  • Transparent compiler: with enablePartialTypeChecking, a project that is only referenced by another project is type checked from its signatures. Implementation files that have a signature file are no longer parsed or type checked to produce the referenced assembly. ParseAndCheckProject still checks all files. (PR #20703)
  • With enablePartialTypeChecking, a project that is only referenced by another project no longer type checks its implementation files that have a signature file. Producing the referenced assembly only needs the signatures, but finalizing the project also collected the diagnostics of the skipped files, which type checked all of them and kept their results in memory. ParseAndCheckProject still reports the diagnostics of these files. (PR #20699)
  • Checker/graph: link files used through literals and enum case values (PR #20995)

Changed

  • FSharpProjectSnapshot: source files and referenced projects are arrays instead of lists, removing redundant conversions. (PR #20875)
  • Debugger: emit a call for a self tail call in non-optimized builds (PR #20782)
  • Remove the unused internal --test:NoErrorText switch and its argument-only diagnostic formatting. (PR #20742)
  • Assign seven previously preview-only features to F# 11.2, now the default language version. default, latest, and latestmajor select F# 11.2; explicit 11 and 11.0 retain F# 11.0 behavior. Preview SDK projects use the same compiler default unless LangVersion is explicitly set. FromEndSlicing remains preview-only. (PR #20617)
  • Add SynExceptionDefnReprTrivia with the range of the exception keyword to SynExceptionDefnRepr. (Fantomas Issue #3483, PR #20612)
  • Add WhenKeyword to SynMatchClauseTrivia with the range of the when keyword in match clauses. (PR #20734)
  • Add OfKeyword to SynUnionCaseTrivia with the range of the of keyword in union cases and exception definitions. (PR #20635)
  • Optimizer: key debug inline specializations on type arguments and witnesses (PR #20844)

43.12.403 - 2026-10-25

Nuget Nuget

Fixed

43.12.402 - 2026-10-13

Nuget

Breaking Changes

  • The F# 18.11 backport uses FSharp.Compiler.Service version 43.13.402, not the 43.12.* servicing family. (PR #20725)
  • Third-party FCS consumers must update their source and rebuild. This package is not a binary-compatible replacement for 43.12.*.
  • FSharpSourceTokenizer now takes three constructor arguments. Remove the strictIndentation argument. FSharpLexer.Tokenize also removes this argument.
  • Tooltip descriptions, type mappings, remarks, and method parameter displays now use RichText, not TaggedText[]. Use RichText.Parts for classified text.
  • Record expressions, anonymous records, and record type definitions now contain field-or-spread nodes. Update record AST construction and pattern matching. SynExprRecordField moves its separator to the enclosing node.
  • SynInterpolatedStringPart.FillExpr now contains SynInterpolationFormatting, not Ident option. Update interpolation AST construction and pattern matching.

43.12.201 - 2026-03-12

Nuget Nuget Nuget Nuget

Fixed

  • Fixed SRTP resolution regression causing FS0030 value restriction errors with FSharpPlus curryN-style patterns in .NET 9 SDK. (PR #19218)
  • Fix FS3261 nullness warning when implementing INotifyPropertyChanged or ICommand CLIEvent properties. (Issue #18361, Issue #18349, PR #19221)
  • Type relations cache: optimize key generation (Issue #19116) (PR #19120)
  • Fixed QuickParse to correctly handle optional parameter syntax with ? prefix, resolving syntax highlighting issues. (Issue #11008753) (PR #19162)
  • Fix --preferreduilang switch leaking into fsi.CommandLineArgs when positioned after script file (PR #19151)
  • Optimize empty string pattern matching to use null-safe .Length check instead of string equality comparison for better performance. (PR #19189)
  • Fixed runtime crash when using interfaces with unimplemented static abstract members as constrained type arguments. (Issue #19184, PR #19185)
  • Fix delegates with [<OptionalArgument>] and caller info attributes failing to compile. (Issue #18868, PR #19069)
  • Type checker: mark generated event tree nodes as synthetic (PR #19213)
  • Nullness: Fix nullness refinement in match expressions to correctly narrow type to non-null after matching null case. (Issue #18488, PR #18852)
  • Scripts: Fix resolving the dotnet host path when an SDK directory is specified. (PR #18960)
  • Fix excessive StackGuard thread jumping (PR #18971)
  • Adjust conservative method-overload duplicate detection rules for nativeptr types (PR #18911)
  • Checking: Fix checking nested fields for records and anonymous (PR #18964)
  • Fix name is bound multiple times is not reported in 'as' pattern (PR #18984)
  • Syntax Tree: fix return type info for let! / and! / use! (PR #19004)
  • Fix: warn FS0049 on upper union case label. (PR #19003)
  • Type relations cache: handle potentially "infinite" types (PR #19010)
  • Disallow recursive structs with lifted type parameters (Issue #18993, PR #19031)
  • Fix units-of-measure changes not invalidating incremental builds. (Issue #19049, PR #19050)
  • Fix race in graph checking of type extensions. (PR #19062)
  • Type relations cache: handle unsolved type variables (Issue #19037) (PR #19040)
  • Fix insertion context for modules with multiline attributes. (Issue #18671, PR #19066)
  • Fix --typecheck-only for scripts stopping after processing #load-ed script (PR #19048)
  • Fix object expressions in struct types generating invalid IL with byref fields causing TypeLoadException at runtime. (Issue #19068, PR #19070)
  • Fix duplicate .cctor issue for discriminated unions with generic statics (Issue #18767, PR #18801)
  • Fix early/unconditional execution of PackageFSharpDesignTimeTools target. (Issue #18924, Issue #12320, PR #18929)

Added

  • Detect and error on static extension members extending types with the same simple name but different namespaces in the same module. (PR #18821)
  • FSharpDiagnostic: add default severity (#19152)
  • Add warning FS3879 for XML documentation comments not positioned as first non-whitespace on line. (PR #18891)
  • FsiEvaluationSession.ParseAndCheckInteraction: add keepAssemblyContents optional parameter (#19155)
  • Add FSharpCodeCompletionOptions (PR #19030)
  • Type checker: recover on checking binding parameter constraints (#19046)
  • Debugger: provide breakpoint ranges for short lambdas (#19067)
  • Add support for triple quoted ASCII byte string (#19182)

Changed

  • Parallel compilation features: ref resolution, graph based checking, ILXGen and optimization enabled by default (PR #18998)
  • Make graph based type checking and parallel optimizations deterministic (PR #19028)
  • Centralize compiler's target framework moniker logic into a single source of truth. (PR #19251)

Breaking Changes

  • SynExpr.LetOrUse holds SynLetOrUse. (PR #19090)
  • SynExprLetOrUseTrivia is now SynLetOrUseTrivia. (PR #19090)
  • SynMemberDefn.LetBindings has trivia. (PR #19090)
  • SynModuleDecl.Let has trivia. (PR #19090)
  • Removed support for .ml and .mli source files. (PR #19143)
  • Removed #light and #indent directives (they are now a no-op; combined with off they give an error). (PR #19143)
  • Removed --light, --indentation-syntax, --no-indendation-syntax, --ml-keywords and --mlcompatibility compiler/fsi flags. (PR #19143)
  • Removed parsing support for long-deprecated ML (non-light) constructs. (PR #19143)

43.12.100 - 2026-03-10

Nuget Nuget

Fixed

  • Fix internal error "no 'value__' field found for enumeration type" when an enum constraint is checked against an enum declared in the same recursive group (module rec or an and group). The constraint is now solved once the representations of the group are established. (Issue #14580, PR #20454)
  • Better diagnostic for a bare enum constraint: 'T : enum now reports FS0699 "An 'enum' constraint must be of the form 'enum'" instead of "Unexpected identifier: 'enum (4)'", and parser messages for invalid constraints no longer leak internal (2)/ (3)/ (4) markers. (Issue #14580, PR #20454)
  • Fix FSI --multiemit+ --debug- unnecessarily generating and loading portable PDB data for every submission. (Issue #17306, PR #20394, downstream report)
  • Fix reference-assembly MVID collisions when a public member is renamed in an early file of a large (>~32 file) project under --optimize-. The per-file signature hashes were folded with a left-shift-by-one combiner over a 32-bit Hash, which truncated the contribution of any file more than ~32 positions from the end of the compile order, so MSBuild's CopyRefAssembly saw an unchanged MVID and kept a stale reference assembly (surfacing as FS0039 downstream). The combiner is now an FNV-1a multiply mix over a 64-bit Hash. (Issue #20389)
  • Fix internal error FS0192 "Iterate2D" when a [<ReflectedDefinition(true)>] parameter auto-quotes an argument that captures a not-yet-generalized use of an inferred generically-recursive function. The auto-quoted (Expr.WithValue) copy now keeps a fresh link to the recursive-value use so it receives the same inferred type arguments as the executable expression at the letrec point. (Issue #20379)
  • Fix StackOverflowException when checking a long seq { ... } body. (PR #20480)
  • Fix NativePtr.stackalloc nested in a larger expression (e.g. a call argument or the right of an assignment) producing an assembly that throws InvalidProgramException at load. (Issue #8083, PR #20302)
  • Fix internal error "Unexpected generalized type variables when compiling an active pattern" when an active pattern is used in a let binding whose right-hand side is a generic value, e.g. let (T) = id. Such a binding is now checked like the equivalent match and is not generalized. (Issue #16856, PR #20383)
  • Fix Release-only (--optimize+) System.InvalidProgramException from Seq.collect / yield! over a value-type (struct) collection implementing seq<'T> (e.g. ImmutableArray<_>) when materialised with List.ofSeq / Seq.toList / Seq.toArray or a list/array comprehension. The collector lowering now boxes a struct sub-collection to seq<'T> before calling AddMany/AddManyAndClose (matching the coercion the type checker already inserts for yield!), and uses unit as the try/finally result type instead of the body type (removing a spurious ldnull store). (Issue #20203)
  • Fix recursive inline SRTP resolution being truncated by one currying level (e.g. FSharpPlus memoizeN), a regression from the function-domain unification order change in PR #15181; the contravariant domain now keeps the inference variable that still carries the pending member constraint. (PR #20247)
  • Fix exponential (2^N) compile time in pattern matching with shared guards and partial active patterns. (Issue #18425, PR #20244)
  • Fix incorrect Debug lowering of inline builders that compose low-level resumable state machines. (Issue #20466, PR #20469)
  • Prevent idle caches and their contents from being retained indefinitely, allowing them to be garbage-collected without explicit disposal. (Issue #20756, PR #20758)
  • Fix incorrect StructLayout(Size = 1) emission for data-less struct unions where the compiler-generated tag field makes the actual runtime size larger. (PR #19759)
  • Embed F# metadata-removal rules before resource collection, preserve custom rules, and combine generated rules when linking assemblies. (PR #20527)
  • Fix FS0750 "This construct may only be used within computation expressions" incorrectly raised for let!/use!/do! appearing in the right-hand side of a plain let binding inside a computation expression. The right-hand side is now desugared as a nested computation of the same builder whose result is bound with let!, keeping its bindings correctly scoped. (Issue #19457, PR #19868)
  • Fix use bindings for IAsyncDisposable in dotnet fsi task expressions by shipping the net10.0 FSharp.Core in the SDK toolset. (Issue #14454, PR #20555)
  • Stop leaking a System.Diagnostics.Metrics.MeterListener per Cache in DEBUG builds. Each cache created a CacheMetrics.CacheMetricsListener (which starts a MeterListener registered in the process-global metrics registry) and never disposed it, so listeners accumulated for the lifetime of the process. Because every cache hit/miss/add published to all registered listeners, the per-operation cost grew linearly with the number of leaked listeners, so repeated checks (and Debug FCS test runs) slowed down over time. The per-cache CacheMetricsListener and the per-instance cacheId tag are removed; DebugDisplay and tests now read the existing name-aggregated stats populated by the single ListenToAll listener, so no per-cache listener is created and no per-operation cost is added. (PR #19995)
  • Fix state machine lowering dropping the side-effectful receiver of an unused unit-typed member access (e.g. inside task { (effectful()).UnitProp }). (Issue #13099, PR #19885)
  • --deterministic Release builds now produce byte-identical FSharp.Compiler.Service.dll under --parallelcompilation+ and --parallelcompilation-, so it is restored to the determinism gate (now also checked sequential-vs-parallel). Code generation runs the same deferred per-file drain in both modes, with type/member/field emit-order keys and generated names derived from the file being emitted rather than thread-scheduling order. (Issue #19928, PR #19929)
  • Fix [<CompiledName>] silently producing duplicate IL entries (FS0192/FS2014) when applied to a multi-value let-binding (e.g. let a, b = 1, 2); now emits FS0755 at type-check time. (Issue #6131, PR #19924)
  • Fix FS3236 when taking the address of an untyped generalized let binding (e.g. let ffff = ValueNone) passed to an inref parameter. (Issue #19608, PR #19948)
  • Fix IntelliSense not suggesting later named arguments after the first one is autocompleted, for methods (including overloaded methods like Task.Factory.StartNew). (Issue #19906, PR #19940)
  • Restore packaging of an F# design-time type provider that is activated via a ProjectReference carrying IsFSharpDesignTimeProvider="true". The provider assembly is again included under fsharp41 when packing (including pack --no-build); PackageFSharpDesignTimeTools now resolves the provider via GetTargetPath, which works in dotnet pack's BuildProjectReferences=false content build without forcing an early ResolveReferences. (Issue #18924, PR #19979)
  • Provided types used from multiple files no longer produce spurious FS0001 type mismatches under parallel compilation; provided-type entities are now interned so every file linking a given provided type shares one entity. (PR #19969)
  • TypeProviders-SDK providers now load under an unoptimized compiler; the systemRuntimeContainsType closure field the SDK reflects on (tcImports) is captured stably regardless of optimization settings. (PR #19969)
  • Provided namespaces are now interned and appended atomically alongside provided types, completing the #19969 fix: under parallel compilation two files linking the same provided namespace no longer build disjoint subtrees that strand the provided types under them (spurious FS0001/FS0039). (Issue #20020, PR #20021)
  • Fixed: Inheriting from an undefined type now reports FS0039 exactly once instead of three times. Phase 1F and Phase 2A of inherit-clause type-checking now skip re-resolving a syntactic clause whose Phase 1D resolution already failed with UndefinedName, eliminating both the duplicate diagnostic and the redundant work. (Issue #16432, PR #19862)
  • Fix several F# editor semantic-classification errors: F# delegate declarations no longer highlight the delegate of … syntax as a method, computation-expression builders inside list/array comprehensions are classified as ComputationExpression, the closing ] of an open-ended slice (e.g. xs[0..]) is no longer classified as Function/Method, and open type T is no longer reported as unused when its imported members (static members, static fields, or DU union cases) are used. (Issue #19905, PR #19960)
  • Diagnostic FS0027 now emits a parameter-specific message (suggesting a let mutable x = x shadow or byref<_>) instead of the illegal let mutable x = expression shadow when the assignment target is a function or method parameter. (Issue #15803, PR #19866)
  • Recursive inline functions and members now emit a single clear error (FS3890) instead of a misleading FS1113/FS1114 optimizer cascade. (Issue #17991, PR #19803)
  • Report FS0037 Duplicate definition of type or module at type-check time when two sibling modules in a module rec / namespace rec group share a name, instead of letting the duplicate slip through to IL emit where it surfaced as the cryptic FS2014: duplicate entry . in type index table. (Issue #6694, PR #19913)
  • Unused Unchecked.defaultof<'T> bindings are now eliminated under optimization at their use sites. This removes redundant initobj/ldnull;pop sequences left behind after inlining SRTP helpers that use Unchecked.defaultof as dummy arguments to drive static-member-constraint resolution. Such bindings are preserved inside inline bodies (whose optimized form is pickled as cross-assembly optimization info and re-inlined by consumers) and whenever the erased type still references unsolved type variables, so no FS0073 regression is introduced. (Issue #18128, PR #19758)
  • Semantic classification no longer marks recursive object self-references (as this, let rec self-refs) as mutable. (Issue #5229)
  • Fix MethodAccessException under --realsig+ when a closure (inner let rec, task/async state machine, or quotation splice) inside a member defined in an intrinsic type augmentation (type C with member ...) accesses a private member of C. The synthesized closure is now nested inside the declaring type instead of beside it in the module class. (Issue #19933, PR #19955)
  • Preserve source range for type errors on empty-bodied computation expressions (e.g. foo {}) in pipelines, function arguments, and type-annotated contexts, instead of reporting unknown(1,1). (Issue #19550, PR #19849)
  • Fix multiline nested type arguments failing to parse when the closing > aligns with the opening type name's column. (Issue #15171)
  • Remove misleading FS0193 when record fields differ in order between a signature and its implementation, while retaining FS0312. (Issue #20410, PR #20559)
  • Preserve outer rethrows and emit legal IL for nested runtime-async try/with after suspension. (Issue #20575, PR #20586)
  • Tooltip "Full name" now shows demangled companion module names (e.g. MyType.func instead of MyTypeModule.func). (Issue #17335, PR #19867)
  • Fix optional indexer setter arguments, including omitted defaults and caller information. (Issue #20046, PR #20570)
  • Fix spurious FS0410 accessibility error when tuple-deconstructing bindings use private types in the same module scope. (Issue #4161, PR #19947)
  • Fix internal error (FS0193) when calling an indexed property setter with a named argument that matches an indexer parameter. (Issue #16034, PR #19851)
  • Fix missing FS1182 ("unused binding") warning for unused let function bindings inside class types. (Issue #13849, PR #19805)
  • Fix internal compiler error FS1110 in task { let! } (and other computation expressions) when a generic IL extension method whose this-parameter is a method-level type variable is in scope (e.g. open ReactiveUI). Regression from PR #19536. (Issue #19936)
  • Fix inner mutually-recursive let rec ... and ... functions under --realsig+ not being lifted to top-level static methods (TLR), causing FSharpFunc closure allocations and loss of tail. opcodes — the large struct-mutual-recursion perf regression reported in Issue #17607. (PR #19882)
  • Fix TypeLoadException ("Specialize tried to implicitly override a method with weaker type parameter constraints") and the related CLR crash with constrained inline calls by stripping constraints from closure-class typars in EraseClosures.convIlxClosureDef. (Issue #14492, Issue #19075, PR #19882)
  • Fix FS0073 during code generation when closure generic arguments contain an unsolved type variable. (PR #20229)
  • Fix FieldAccessException at runtime when the optimizer relocates a read of a protected (family) base-class field into a method outside the field's family (e.g. a trivial member inlined into module/startup code under --optimize+). Protected (family) IL field access is no longer hoisted out of its declaring family by inlining or method-splitting. (Issue #19963, PR #19964)
  • Suppress hover/symbol resolution for wildcard _ patterns inside member _.… bodies that incorrectly showed val _: T tooltip. (PR #19760)
  • Report seq { } implicit-yield diagnostics and format specifier locations once instead of twice: the classification pass that decides whether the body is a statement or a yielded element no longer double-reports to the sink or diagnostics. (Issue #16419, PR #19791, PR #19895)
  • Fix false FS3261 nullness warnings for union types in recursive declaration groups. Preserve overload selection and valid warnings when representation attributes use same-group type abbreviations, without reporting deferred warnings again for annotations already checked. (Issue #20211, PR #20562)
  • Stabilize codegen order under --parallelcompilation+ so --deterministic Release builds produce byte-identical IL across rebuilds: optimizer Val iteration, IlxGen type/method/field/event emit order, anonymous-record extra-binding drain, and FileIndex assignment now follow source position rather than thread-scheduling order. (Issue #19732, PR #19810)
  • Reject non-function bindings for single-case and partial active pattern names with FS1209, matching the existing multi-case behavior. (PR #19763)
  • Fix FS0421 "The address of the variable cannot be used at this point" incorrectly raised for the discard pattern let _ = &expr when let x = &expr compiles. (Issue #18841, PR #19811)
  • Fix double Dispose call when a use binding aliases its value via an as pattern or rebinds an existing use-bound value. (Issue #12300, PR #19858)
  • Honor --nowarn and --warnaserror for warnings emitted during command-line option parsing (Issue #19576, PR #19776)
  • Bitwise operators (|||, &&&, ^^^) applied to enums with a non-integral underlying type (e.g. char) are now rejected at compile time with FS0001 instead of compiling and failing at runtime with NotSupportedException. Gated behind the ErrorOnBitwiseOpsOnNonIntegralEnums language feature (F# 11.0). (Issue #11785, PR #20322)
  • Fix [<return: X>] prefix attributes being silently dropped on class members, and fix false-positive AllowMultiple=false errors when [<X>] and [<return: X>] are applied to the same binding. (Issue #17904, Issue #19020, PR #19738)
  • Fix = adjacent to an interpolated string (e.g. C(Name=$"value")) being lexed as the invalid operator =$ instead of an assignment followed by an interpolated string. (Issue #16696)
  • Extend the = adjacent to an interpolated string fix to the verbatim (=$@"…", =@$"…") and extended multi-dollar (=$$"""…""") interpolated-string forms. (Issue #16696, PR #19984)
  • Preserve type abbreviations (string, user-defined aliases) in the refined type of bindings introduced after a | null pattern in a match expression. (Issue #19646, PR #19745)
  • Fix attributes on return type of unparenthesized tuple methods being silently dropped from IL. (Issue #462, PR #19714)
  • Fix cross-assembly calls to inline SRTP functions from libraries compiled with F# 4.7 and earlier. (Issue #20253, PR #20260)
  • Fix enum values losing their type when used in a custom attribute argument of type obj (they were stored as the underlying integer instead of the enum). (Issue #995, PR #19975)
  • Fix false-positive nullness warning (FS3261) when pattern matching narrows nullness inside seq/list/array comprehensions. (Issue #19644, PR #19743)
  • Fix internal error FS0073 "Undefined or unsolved type variable" in IlxGen when nested inline SRTP functions with multiple overloads leave unsolved typars in the non-witness codegen path. (Issue #19709, PR #19710)
  • Fix internal error FS0073 "Undefined or unsolved type variable" in IlxGen GenGenericArgs when a phantom typar reaches a closure's generic actuals in the emitted fallback body of a nested inline SRTP member. (PR #19602)
  • Fix NRE when calling virtual Object methods on value types through inline SRTP functions. (Issue #8098, PR #19511)
  • Narrow overload-resolution error ranges to the method name only instead of covering the entire expression. (Issue #14284, PR #19505)
  • Fix attributes not resolved from opened namespaces in namespace rec / module rec scopes. (Issue #7931, PR #19502)
  • Fix DU case names matching IWSAM member names no longer cause duplicate property entries. (Issue #14321, PR #19341)
  • Recover per symbol instead of per file in GetSemanticClassification, so one unresolvable symbol no longer drops the whole file's classification, and fail fast in the pickle writer when an entity was never linked. (Issue #20269, PR #20274)
  • Fix DefaultAugmentation(false) duplicate entry in method table. (Issue #16565, PR #19341)
  • Fix abstract event accessors now have SpecialName flag. (Issue #5834, PR #19341)
  • Fix warning 20 ("expression is implicitly ignored") pointing at the wrong range when the last expression in a sequential block (e.g. inside for, while loops) is non-unit. The squiggle now correctly highlights only the offending expression. (Issue #5418, PR #19504)
  • Extend the warning 20 range fix to also walk through let/use bindings, so the squiggle lands on the offending expression when it is the body of a let/use. (Issue #5418, PR #19896)
  • Fix missing "No implementation was given" error when F# class inherits from a C# class with abstract override members without providing an implementation. (Issue #7776, PR #19503)
  • Fix CLIEvent properties to be correctly recognized as events: IsEvent returns true and XmlDocSig uses E: prefix instead of P:. (Issue #10273, PR #18584)
  • Fix extra sequence point at the end of match expressions. (Issue #12052, PR #19278)
  • Fix wrong sequence point range for return/yield/return!/yield! inside computation expressions. (Issue #19248, PR #19278)
  • Fix extra out-of-order sequence point for use in task computation expressions. (Issue #19255, PR #19278)
  • Fix debug points failing to bind in body of [ for x in xs -> body ] comprehensions. (Issue #13504, PR #19278)
  • Fix outref parameter compiled as byref. (Issue #13468, PR #19340)
  • Fix static abstract interface members with byref params. (Issue #18135, PR #19340)
  • Fix codegen to produce IL passing ILVerify: specialized stelem/ldelem for primitives, callvirt→call on value types, castclass at interface join points, filter→catch inside finally handlers, witness field alignment in state machine structs. (PR #19372)
  • Fix object expressions in struct types no longer generate invalid IL with byref fields. (Issue #19068, PR #19339)
  • Avoid duplicate parameter names in closure constructors. (Issue #17692, PR #19339)
  • Improve let-rec codegen: reorder bindings to allocate lambda closures before non-lambda values that reference them. (PR #19339)
  • Fix YieldFromFinal/ReturnFromFinal being incorrectly called in non-tail positions (for, use, use!, try/with handler). (Issue #19402, PR #19403)
  • Preserve commas in embedded resource paths, including generated trimming substitutions under custom intermediate directories. (PR #20527)
  • Fixed how the source ranges of warn directives are reported (as trivia) in the parser output (by not reporting leading spaces). (Issue #19405, PR #19408)
  • Fix UoM value type ToString() returning garbage values when --checknulls+ is enabled, caused by double address-taking in codegen. (Issue #19435, PR #19440)
  • Fix accessibility and type-matching for extension method lookups. (Issue #19349, PR #19536)
  • Fix completion inconsistently showing some obsolete members (fields and events) while hiding others (methods and properties). All obsolete members are now consistently hidden by default. (Issue #13512, PR #19506)
  • Explicit generic type arguments are now unified in constraint-dependency order, so a subtype constraint that references a later type parameter (e.g. Register<'a, 'b when 'a :> I<'b>> called as <Foo, int>) no longer fails with FS0001 when the argument implements the interface at several instantiations. (Issue #20103, PR #20342)
  • Fix O(n) TypeStructure.GetHashCode performance regression causing sustained high CPU in IDE mode with generative type providers. (Issue #18925, PR #19369)
  • Fix TypeLoadException when creating delegate with voidptr parameter. (Issue #11132, PR #19338)
  • Suppress tail calls when localloc (NativePtr.stackalloc) is used. (Issue #13447, PR #19338)
  • Fix stack overflow when graph-checking long statement sequences on platforms with large stack frames (e.g. Mono ppc64le), by flattening SynExpr.Sequential chains in FileContentMapping. (Issue #19988, PR #20028)
  • Fix TypeLoadException in Release builds with inline constraints. (Issue #14492, PR #19338)
  • Fix nativeptr in interfaces leads to TypeLoadException. (Issue #14508, PR #19338)
  • Fix box instruction for literal upcasts. (Issue #18319, PR #19338)
  • Fix Decimal Literal causes InvalidProgramException in Debug builds. (Issue #18956, PR #19338)
  • Fix AttributeUsage.AllowMultiple not being inherited for attributes subclassed in C#. (Issue #17107, PR #19315)
  • Fix signature generation: recursive module do binding leaking compiler-generated val. (Issue #13832, PR #19586)
  • Fix signature generation: literal values in attribute arguments now preserve literal identifier name. (Issue #13810, PR #19586)
  • Fix signature generation: struct types with non-comparable/non-equatable fields now include [<NoComparison>]/[<NoEquality>]. (Issue #15339, PR #19586)
  • Fix MemoryMappedFileViewStream copying from non-array-backed ReadOnlyMemory values by falling back to the safe Stream.Write path instead of the unsupported PositionPointer fast path. (Issue #20263, PR #20271)
  • Fix signature generation: backtick escaping for identifiers containing backticks. (Issue #15389, PR #19586)
  • Fix signature generation: private keyword placement for prefix-style type abbreviations. (Issue #15560, PR #19586)
  • Fix signature generation: missing [<Class>] attribute for types without visible constructors. (Issue #16531, PR #19586)
  • Fix F# exception serialization now preserves fields (gated behind --langversion:11). (Issue #878, PR #19342, PR #19746)
  • Fix computation expressions desugaring final-position do! as return!/yield!; it now uses Bind while explicit return!/yield! retain final methods. (Issue #20448, PR #20449)
  • Fix methods being tagged as Member instead of Method in tooltips. (Issue #10540, PR #19507)
  • Fix Debug-mode compilation when mixing resumable and standard computation expressions. (Issue #19625, PR #19630)
  • IlxGen: fix missing CompilationMapping attribute for generic values (PR #19643)
  • Fix internal error FS0192: encodeCustomAttrElemType when using arrays of user-defined types as custom attribute arguments. Empty arrays (e.g. [<DefaultValue([||] : A[])>]) now compile successfully; non-empty arrays of unencodable types report a proper diagnostic (FS3887) instead of an internal error. (Issue #12796, PR #19472)
  • Cleanup in IL base-call checking: skip resolveILMethodRefWithRescope when the method is not declared on the immediate IL type, instead of relying on the try/with around a failwith. FS1201 still applies when the abstract member is declared on the immediate IL base. (Issue #20264, PR #20272)
  • Fix internal compiler error in use bindings when a C#-style Dispose extension method is in scope alongside IDisposable.Dispose. (Issue #19552, PR #19568)
  • Fix MethodImpl and PreserveSig attributes on property accessors to emit method implementation flags instead of real custom attributes. (Issue #20288, PR #20558)
  • Fix signature generation: single-case struct DU gets spurious bar causing FS0300. (Issue #19597, PR #19609)
  • Fix signature generation: backticked active pattern case names lose escaping. (Issue #19592, PR #19609)
  • Fix signature generation: namespace global header dropped from generated signature. (Issue #19593, PR #19609)
  • Fix signature generation: SRTP constraints use postfix syntax that fails conformance, now uses explicit type param declarations. (Issue #19594, PR #19609)
  • Fix signature generation: type params with special characters missing backtick escaping. (Issue #19595, PR #19609)
  • Fix internal error when using custom attribute with [<Optional>] value type parameter and no [<DefaultParameterValue>]. (Issue #8353, PR #19484)
  • Fix overload resolution of static member extension if one or more intrinsics candidates exist (Issue #19664, PR #19698)
  • Fix parallel compilation of scripts (PR #19649)
  • Fix parser recovery, name resolution, and code completion for unfinished enum patterns (PR #19708)
  • Parser: fix unexpected diagnostics in debug builds, improve error messages (PR #19730)
  • Fix parser error for anonymous record type aliases with postfix type operators (e.g. {| Id: Guid |} []) when closing bracket is column-aligned with opening bracket. (Issue #17407, PR #19762)
  • Fix internal error when resolving SRTP get_Item witness for string indexers (unknown builtin witness 'get_ItemDynamic'). (Issue #18093, PR #19757)
  • Fix false FS1113 error on inline instance members when a class-scope self identifier (as self) is present. (Issue #17899, PR #19761)
  • Allow | null nullable annotation on a [<MeasureAnnotatedAbbreviation>] over a reference type (e.g. the FSharp.UMX type string<[<Measure>] 'm> = string pattern). (Issue #19657)
  • Fix [<Struct>] ?param optional parameters could not be passed using the explicit ?param = expr caller-side syntax with a ValueOption value. (Issue #19711, PR #19742)
  • Fix signature conformance: overloaded member with unit parameter M(()) now matches sig member M: unit -> unit. (Issue #19596, PR #19615)
  • Fix --quiet not suppressing NuGet restore output on stdout in F# Interactive (Issue #18086)
  • Reference assembly MVIDs are now deterministic across compiler invocations. Previously, --refout / <ProduceReferenceAssembly>true</ProduceReferenceAssembly> produced a different MVID every build because the implied signature hash used .NET's randomized String.GetHashCode(). (Issue #19751, PR #19801)
  • Fix recursive inline-member optimization dependencies so inline consumers in recursive groups are resolved reliably without changing static initialization order. (Issue #20085, PR #20111)
  • Parser: recover on unfinished if and binary expressions (PR #19724)
  • Parser: recover on missing 'when' conditions (PR ##20071)
  • Fix SynExpr.shouldBeParenthesizedInContext to report parentheses as required around SynExpr.Sequential expressions used as record or anonymous-record field values, so the IDE "remove unnecessary parentheses" analyzer no longer breaks code like {| A = ((); B = 3) |}. (Issue #17826, PR #19850)
  • Fix semantic classification of IDisposable and other interface types in type-occurrence positions being incorrectly classified as DisposableType instead of Interface. (Issue #16268, PR #19809)
  • Fix missing semantic classification on second and later type qualifiers in nested copy-and-update expressions like { p with Person.Info.X = 1; Person.Info.Y = 2 }. (Issue #17428, PR #19878)
  • Fix QuickInfo / GetAllUsesOfAllSymbolsInFile for overloaded CE [<CustomOperation>] keywords to report the actually-resolved overload instead of the first-registered one. (Issue #11612, Issue #15206, PR #19865)
  • Fix open declaration insertion in .fsx/.fsscript scripts being placed before #r/#load directives, producing invalid script files. (Issue #16271, PR #19879)
  • Warn FS3888 when a compiler-semantic attribute on a value/member or type/module is present in the .fs but missing from the .fsi. Such attributes were previously ignored at the consumer side. Under the ErrorOnMissingSignatureAttribute preview language feature, FS3888 is an error. (Issue #19560, PR #19880)
  • Emit debug points at a stack-empty position (PR #19877)
  • Fix spurious XmlDoc warnings (unknown parameter / no documentation for parameter) under --warnon:3390 when a get/set property documents the full parameter set across both accessors. (Issue #13684, PR #19884)
  • Replace internal compiler error FS0193 with a clear FS3891 diagnostic when a type abbreviation aliases a generic attribute type (e.g. type B = A<int> then [<B>] ...). Generic attributes remain unsupported in F#. (Issue #7877, PR #19915)
  • Fix Go to Metadata rendering of IL literal (const) fields - they now appear with [<Literal>] and their constant value, e.g. System.Char.MaxValue no longer shows as a plain static val. (Issue #11526, PR #19922)
  • FSI multi-assembly emit (--multiemit+) now attaches System.Diagnostics.DebuggableAttribute(DisableOptimizations|Default) to each submission's manifest when local optimizations are disabled (--optimize-), matching the single-emit and regular-compiler behavior so debuggers see submissions as unoptimized. (Issue #14572, PR #19921)
  • Stop F# Interactive from mutating script arguments that follow --. Abbreviated flags like -d, -r, -I after the -- separator are no longer colon-joined with their next token in fsi.CommandLineArgs. (Issue #10819, PR #19926)
  • Fix Go-to-Definition for provided constructors that lack TypeProviderDefinitionLocationAttribute. Navigation now falls back to the declaring type instead of silently failing. (Issue #5538, PR #19917)
  • Render the declaring type for C#-style extension methods in overload-resolution error messages so the suggestion no longer falsely attributes the extension to the receiver type. (Issue #9838, PR #19925)
  • Fix FSI pretty printing to distinguish anonymous records ({| ... |}) from nominal records ({ ... }). (Issue #6116, PR #19919)
  • Fix dot-completion after indexed expressions (a.[0].Data., a[0].Data., [1;2].Length.) returning unrelated global completions instead of expression-typings members. (Issue #4966, PR #19934)
  • Quotations of match s with "" -> _ no longer leak the s <> null && s.Length = 0 lowering; the empty-string optimization moved from pattern-match compilation to the optimizer so quoted expressions keep op_Equality(s, ""). (Issue #19873)
  • Parser: recover on unfinished abstract members (PR #20070)
  • Fix #5795: Allow attributes defined in a module rec / namespace rec scope to be used on union cases, record fields, and generic type parameters of types in the same recursive scope. (Issue #5795, PR #19744)
  • Import: Don't walk non-F# assemblies when labelling trait constraint sources (PR #20090)
  • Avoid per-instance lock object in InterruptibleLazy and DelayInitArrayMap (PR #20088)
  • IL: fix leaking binary view (PR #20250)
  • FCS: fix races that made the background builder repeat work (PR #20481)
  • Reject runtime-only Await calls inside ordinary task state-machine methods with FS3918, while preserving normal task composition inside runtime-async methods. (Issue #20576, PR #20584)
  • Fix dependency ordering and stack safety for recursive inline bindings. (PR #20111)
  • Fix signature generation (fsc --sig, GenerateSignature, GetValSignatureText) dropping the parentheses around a destructured or pattern-annotated tuple parameter when a sibling argument in the same curried group is named, so (int * float) * z: string no longer prints as the flat 3-tuple int * float * z: string. (Issue #20397, PR #20589)

Added

  • FCS: add FSharpCheckFileResults.FileSignature (PR #20478)
  • Added the ReraiseInComputationExpressions language feature (--langversion:preview): reraise () in the with handler of a computation expression is compiled to a rethrow through ExceptionDispatchInfo instead of being rejected with FS0413. (Suggestion #660, RFC FS-1347, PR #20405)
  • Added a "most concrete" tiebreaker for overload resolution (--langversion:preview). (RFC FS-1340, PR #19277)
  • Added support for OverloadResolutionPriorityAttribute in overload resolution (--langversion:preview). (RFC FS-1338, PR #19277)
  • Added internal synthesized-name replay infrastructure for compiler-generated names, preserving normal compilation output while enabling future hot reload name stability work.
  • Added FSharpMemberOrFunctionOrValue.IsPropertyAccessor convenience property that returns true for compiler-generated property accessors (get_X / set_X). (Issue #18157, PR #19883)
  • Added warning FS3884 when a function or delegate value is used as an interpolated string argument. (PR #19289)
  • Symbols: add ObsoleteDiagnosticInfo (PR #19359)
  • FCS: add FSharpCheckFileResults.HasErrors (PR #19892)
  • Add preview compiler support for runtime-async Task<'T> methods through the __runtimeAsyncReturn intrinsic, including carrier validation, target-runtime capability checks, diagnostics for suspension calls outside runtime-async methods, diagnostics for byref, byref-like, or pinned values used after suspension, and recursive specialization of inline suspension fragments when optimization is disabled. (PR #20235)
  • Add #version;; directive to F# Interactive to display version and environment information. (Issue #13307, PR #19332)
  • Add diagnostic FS3889 when a namespace and a type have the same fully-qualified name in the same assembly, replacing the misleading FS0247 "namespace and a module" error. (Issue #17827, PR #19802)
  • Debug: rework for expressions stepping (PR #19894)
  • Debug: rework conditional erasure, fix stepping over literals (PR #19897)
  • Record spreads (RFC FS-1151, PR #18927, PR #20206)
  • Debug: fix if and match condition sequence points (PR #19932)
  • Name resolution: CheckIWSAM only needs the intrinsic methods (PR #20490)
  • Surface the synthesized all-fields constructor of F# record types to F# code under the RecordConstructorSyntax preview feature, via a new MethInfo.RecdCtor case. (PR #19974)
  • Methods and constructors annotated with System.Diagnostics.CodeAnalysis.RequireNamedArgumentsAttribute require named arguments under --langversion:preview, including provided methods. Recognition uses the full type name. Positional calls report FS3923. nameof remains allowed. (PR #20340)
  • Under --reflectionfree, discriminated unions, records and anonymous records now get a generated ToString (rendering each field like Option does) instead of falling back to the namespace-qualified type name. (PR #19976)
  • Support common types of NotNullIfNotNullAttribute usage. If a method parameter is marked with NotNullIfNotNullAttribute, the compiler will now honor this attribute and mark the return type as non-null. (PR #19977)
  • Checker: recover on checking language version (PR ##19970)
  • Implied argument names for function-to-delegate coercions now fall back to the delegate's Invoke parameter names when the function has no recoverable names (e.g. a partial application like System.Func<int, int>((+) 1)), instead of synthetic delegateArg0, delegateArg1, … names. (PR #20001)
  • Add internal ResetCompilerGeneratedNameState to CompilerGlobalState name generators so warm-checker re-compilation can produce fresh-process-identical generated names. (PR #20017)
  • Publish generated ILVerify actual baselines as downloadable CI artifacts when verification fails. (PR #20585)
  • IL: map the short-lived metadata-only PE reader (PR #20489)
  • Add internal ECMA-335 Edit-and-Continue metadata delta writer to AbstractIL. (PR #20019)
  • Add Roslyn-format EnC CustomDebugInformation codec and portable PDB method CDI emission support to AbstractIL. (PR #20018)
  • Extension members (including operators) now participate in SRTP (statically-resolved type parameter) constraint resolution, so member constraints on inline code can be satisfied by extension members — including operators defined on types you don't own via type extensions. Intrinsic members keep priority over extension members, and extension members solve SRTP constraints without satisfying nominal static-abstract interface (IWSAM) constraints. Also adds the [<AllowOverloadOnReturnType>] attribute for overloads that differ only by return type, and tuple type extensions (type ('T1 * 'T2) with / type struct ('T1 * 'T2) with). Requires --langversion:preview. (RFC FS-1043, fslang-suggestions#230, PR #19602)
  • Add internal hot reload baseline reading for recorded EnC state and synthesized-name snapshot PDB data. (PR #20026)
  • Support for the <include> XML documentation tag: at compile time, documentation is copied from an external XML file selected by an XPath query and emitted into the generated documentation file. <inheritdoc> remains unsupported. (Issue #19175, PR #19186)
  • Expand <inheritdoc/> at tooling time. In IDE tooltips, completion, and signature help, documentation is inherited from base classes, interfaces, overridden members, and constructors (matched by parameter signature). The FCS Symbols API (FSharpSymbol.XmlDoc) additionally resolves explicit cref targets, but does not expand constructor inheritance. The compiler emits the tag verbatim into generated XML documentation files, matching C#; <include> is not implemented. (Issue #19175, PR #19188)
  • Prototype direct runtime-async sequences from statically known inline recipes, with asynchronous cleanup, direct interface dispatch, and preserved runtime call-await fusion.
  • Add symbol and type highlighting to F# diagnostics (PR #20097)
  • IL: hold custom attributes in fields rather than a union case (PR #20287)
  • IL: reuse the cached ILTypeRef in ILTypeInfo.FromType (PR #20255)
  • IL: fix the per-reader string cache sizing (PR #20261)
  • Name resolution: group C#-style extension members per open and extended type (PR #20298)
  • Symbols: add FSharpDisplayContext.WithNullnessAnnotations (PR #20507)

Improved

  • IL: cache C# extension methods per CCU (PR #20256)
  • Nullness warning FS3261 on dotted method or property access (e.g. x.Member) now underlines the receiver expression and includes the member name and (when known) the binding name in the message. (Issue #19658, PR #19814)
  • Import: share assembly CCUs between projects (PR #20296)
  • IL: share the pickled references (PR #20301)
  • Direct delegate construction (PR ##19993)
  • IL: add ILPreNamespace, make ILPreTypeDef creation lazy (PR #20092)
  • IL: share ILCallingConv instances (PR #20254)
  • IL: intern the attributes and type references read from metadata (PR #20486)
  • IL: cache the ILTypeRef of a type def (PR #20259)
  • IL: use empty tables for members when possible (PR #20249)
  • Make Entity's adhoc members list lazy (PR #20286)
  • Constraint solver: TryD is now inline with [<InlineIfLambda>] on its always-run continuation, so the argument closures are no longer allocated at the (very hot) constraint-solver call sites; IgnoreFailedMemberConstraintResolution is inline so its forwarded continuation stays a literal. (PR #20367)
  • [<OptimizeClosureIfNotInlined>], available in F# 11, adapts opaque callbacks once instead of checking their arity on every call. Lifted recursive methods no longer trigger unrelated file initialization, which could deadlock. (PR #20422, PR #20571)
  • DelayedILModuleReader no longer boxes its cached ILModuleReader on every read: the field is typed ILModuleReader | null and matched directly. (PR #20413)
  • Typed tree: create a type's augmentation on first use (PR #20494)
  • Optimizer: passing a partial application of a non-inline module-level function to an [<InlineIfLambda>] parameter (e.g. xs |> Option.map (f a b)) no longer allocates a per-call FSharpFunc closure when a captured argument is non-trivial (a field read, a call). Under optimization the argument is eta-expanded to a lambda with its captured evaluations floated above the binding, so the parameter's uses beta-reduce and the closure is eliminated. Captured arguments are still evaluated exactly once, in their original left-to-right order, and the binding keeps its sequence point. Partial applications of inline/SRTP functions and curried members can still allocate closures. (PR #20487)
  • IlxGen: HashRangeSorted returns immediately for an empty dictionary and otherwise sorts one exact-size array in place, rather than building three intermediate lists. Most type definitions carry no properties, so this takes the whole pipeline off the common path. (PR #20456)

Changed

  • The --warnaserror option now ignores unrecognized diagnostic identifiers in warning lists while still applying recognized F# warning codes. (PR #20246)

  • Reduce allocations when inlining a generic function by fusing the optimizer's copy and type-instantiation passes into a single tree traversal instead of cloning the body twice. (PR #20363)

  • Improvements in error and warning messages: new error FS3885 when let!/use! is the final expression in a computation expression; new warning FS3886 when a list literal contains a single tuple element (likely missing ; separator); improved wording for FS0003, FS0025, FS0039, FS0072, FS0247, FS0597, FS0670, FS3082, and SRTP operator-not-in-scope hints. (PR #19398)

  • Exception field serialization (GetObjectData and field-restoring constructor) is now gated behind langversion:11 (LanguageFeature.ExceptionFieldSerializationSupport). With langversion ≤10, exception codegen is unchanged from pre-#19342 behavior. (PR #19746)

  • Async.RunImmediate renamed and replaced with impl of FSharp.Core's Async.RunSynchronouslyImmediate, wherein Exceptions are unwrapped (i.e., no egregious AggregateException wrapping). (Issue #1042, PR #19804, PR #20245)

  • Lower string-typed interpolated strings to System.String.Concat rather than the reflection-based printf engine, making them trim- and NativeAOT-compatible. This generalizes and ungates the previous all-string String.Concat optimization, so it now applies to every string-typed interpolation. (Language suggestion #1108, PR #19971)

  • Stabilized several preview language features into F# 11.0 (--langversion:11.0, enabled by default with a .NET 11 SDK): MethodOverloadsCache, ErrorOnMissingSignatureAttribute, DirectDelegateConstruction, AccessProtectedBaseFieldFromClosure, and RecordSpreads. FromEndSlicing intentionally remains in preview. (PR #20199)

  • F# build tasks use MSBuild's per-task environment for in-process multithreaded builds. The build host must provide IMultiThreadableTask, TaskEnvironment, and ToolTask.TaskEnvironment. (PR #20506)

  • Interpolated string holes (e.g. $"{x}") are now formatted with invariant culture (via the string operator) instead of the current thread culture. (PR #19971)

  • Lines starting with #: are now ignored (Language suggestion 1440, RFC FS-1337, PR #20212)

  • [<return: X>] attributes written in front of a binding are again reported by SynBinding.attributes in the untyped syntax tree, with their original grouping and [< >] ranges. The rotation into SynValInfo.retInfo added by PR #19738 now happens while normalizing a binding for checking instead of in the parser, so both fixes from that PR are unchanged while tools reading the parse tree (formatters, analyzers, source generators) again see what was written. (PR #20356)

  • Calculate Entity.PublicPath instead of storing (PR #20285)

  • Remove the always-on NullableOptionalInterop language feature flag and collapse its guarded code to the enabled path; --disableLanguageFeature:NullableOptionalInterop is no longer a recognized feature name. (Issue #20154, PR #20378)

  • Remove the always-on ErrorReportingOnStaticClasses language feature flag. Static-class validation remains unchanged for all supported language versions. (Issue #20180, PR #20513)

  • Remove trailing whitespace from source files. No functional change: whitespace inside string literals and inactive #if regions is preserved. (PR #20355)

Breaking Changes

  • Add ExtendedLayoutAttribute support for future .NET runtime interop. ILTypeDefLayout has a new Extended case. (Issue #19190, PR #19194)

  • FSharp.Compiler.Syntax.SynInterpolatedStringPart.FillExpr now carries a SynInterpolationFormatting value (separating .NET alignment/format from printf specifiers) instead of an Ident option. (PR #19971)

  • FSharp.Compiler.Syntax.SynComponentInfo now holds the type name as synType: SynType option instead of the previous longId: LongIdent field, so tuple-type extensions such as type ('T1 * 'T2) with can be represented. A member LongIdent compatibility property returns the long identifier for named types and an empty list for tuple or erroneous type names. AST consumers that pattern-matched on the longId field must switch to the synType field or the LongIdent member. (PR #19602)

  • Optimizer: don't inline named functions in debug builds (PR #19548

  • LexFilter: drop non-strict mode (PR #20106)

43.11.300 - 2026-05-12

Nuget Nuget Nuget Nuget

Fixed

  • Fix strong name signature size to align with Roslyn for public signing (Issue #17451, PR #19242)
  • Nullness: Fix UoM ToString returning string | null for value types. (Issue #17539, PR #19262)
  • Nullness: Fix pipe operator nullness warning location to point at nullable argument. (Issue #18013, PR #19262)
  • Nullness: Fix false positive warning when passing non-null AllowNullLiteral constructor result. (Issue #18021, PR #19262)
  • Nullness: Allow not null constraint on type extensions. (Issue #18334, PR #19262)
  • Nullness: Simplify tuple null elimination to prevent over-inference of non-null. (Issue #19042, PR #19262)
  • Fixed Find All References not correctly finding active pattern cases in signature files. (Issue #19173, Issue #14969, PR #19252)
  • Fixed Rename not correctly handling operators containing . (e.g., -.-). (Issue #17221, Issue #14057, PR #19252)
  • Fixed Find All References not correctly applying #line directive remapping. (Issue #9928, PR #19252)
  • Fixed SynPat.Or pattern variables (non-left-most) incorrectly classified as bindings instead of uses. (Issue #5546, PR #19252)
  • Fixed Find All References not finding discriminated union types defined inside modules. (Issue #5545, PR #19252)
  • Fixed synthetic event handler values appearing in Find All References results. (Issue #4136, PR #19252)
  • Fixed Find All References not finding all usages of C# extension methods. (Issue #16993, PR #19252)
  • Fixed Find All References on discriminated union cases not including case tester properties (e.g., .IsCase). (Issue #16621, PR #19252)
  • Fixed Find All References on record types not including copy-and-update expressions. (Issue #15290, PR #19252)
  • Fixed Find All References on constructor definitions not finding all constructor usages. (Issue #14902, PR #19252)
  • Fixed Find All References producing corrupted duplicate constructor symbol references with shifted ranges, and removed duplicate attribute symbols from type definition error-reporting. (Issue #19336, PR #19358)
  • Fixed semantic classification regression where copy-and-update record fields were colored as type names, and union case tester dot was colored as union case. (PR #19311)
  • Fix false FS1182 (unused variable) warning for query expression variables used in where, let, join, and select clauses. (Issue #422)
  • Fix FS0229 B-stream misalignment when reading metadata from assemblies compiled with LangVersion < 9.0, introduced by #17706. (PR #19260)
  • Fix FS3356 false positive for instance extension members with same name on different types, introduced by #18821. (PR #19260)
  • Fix graph-based type checking incorrectly resolving dependencies when the same module name is defined across multiple files in the same namespace. (PR #19280)
  • F# Scripts: Fix default reference paths resolving when an SDK directory is specified. (PR #19270)
  • Improve static compilation of state machines. (PR #19297)
  • Fix a bug where let! and use! were incorrectly allowed outside computation expressions. PR #19347
  • Fix TypeLoadException when creating delegate with voidptr parameter. (Issue #11132, PR #19338)
  • Suppress tail calls when localloc (NativePtr.stackalloc) is used. (Issue #13447, PR #19338)
  • Fix TypeLoadException in Release builds with inline constraints. (Issue #14492, PR #19338)
  • Fix nativeptr in interfaces leads to TypeLoadException. (Issue #14508, PR #19338)
  • Fix box instruction for literal upcasts. (Issue #18319, PR #19338)
  • Fix Decimal Literal causes InvalidProgramException in Debug builds. (Issue #18956, PR #19338)

Added

  • FSharpType: add ImportILType (PR #19300)

  • Type checker: recover on argument/overload checking (PR #19314)

  • FSharpType: add more predefined type checks (PR #19325)

  • Introduced a separate NotifyRelatedSymbolUse sink and [<Flags>] RelatedSymbolUseKind enum for related symbol lookups (union case testers, copy-and-update record types). GetUsesOfSymbolInFile and GetSemanticClassification accept an optional relatedSymbolKinds parameter to opt in. (PR #19361)

  • Support #exit;; as alias to #quit;; in F# Interactive. (PR #19329)

  • FCS: capture additional types during analysis (PR #19305)

Changed

  • Centralized product TFM (Target Framework Moniker) into MSBuild props file eng/TargetFrameworks.props. Changing the target framework now only requires editing one file, and it integrates with MSBuild's --getProperty for scripts.
  • Overload resolution results are now cached, providing compile time improvements for code with repeated method calls. (Issue #18807)
  • Symbols: safer qualified name getting (PR #19298)

Breaking Changes

43.10.100 - 2025-11-11

Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget Nuget

Added

  • Symbols: add Mfv.ApparentEnclosingType (PR #17494)
  • Add opt-in warning attribute not valid for union case with fields PR #18532)
  • Add support for when 'T : Enum library-only static optimization constraint. (PR #18546)
  • Add support for tail calls in computation expressions (PR #18804)
  • Add --typecheck-only flag support for F# Interactive (FSI) scripts to type-check without execution. (Issue #18686, PR #18687)
  • Diagnostics: add extended data for 'No constructors' error (PR #18863)
  • FSharpType.Format: support top-level prefix generic types style. (PR #18897)
  • FCS: allow getting captured types (PR #18878)

Fixed

  • Fix F# compiler to prevent tail call emission when pinned locals are present (PR #18893)
  • Fix SignatureHash to include constant values in hash computation (Issue #18758, PR #18771)
  • Fix parsing errors using anonymous records and units of measures (PR #18543)
  • Fix parsing errors using anonymous records and code quotations (PR #18603)
  • Better error message for attribute targets. (PR #18641)
  • Fixed: Allow return, return!, yield, yield! type annotations without parentheses (PR #18533)
  • Allow let!, use!, and! type annotations without requiring parentheses ((PR #18508 and PR #18682))
  • Fix find all references for F# exceptions (PR #18565)
  • Shorthand lambda: fix completion for chained calls and analysis for unfinished expression (PR #18560)
  • Completion: fix previous namespace considered opened PR #18609
  • Fix active pattern typechecking regression. (Issue #18638, PR #18642)
  • Fix nullness warnings when casting non-nullable values to IEquatable<T> to match C# behavior. (Issue #18759, PR #18770)
  • Error on invalid declarations in type definitions.(Issue #10066, PR #18813)
  • Fix IsByRefLikeAttribute types being incorrectly suppressed in completion lists. Types like Span<T> and ReadOnlySpan<T> now appear correctly in IntelliSense. (PR #18784)
  • Fix SRTP nullness constraint resolution for types imported from older assemblies. AmbivalentToNull types now use legacy F# nullness rules instead of always satisfying 'T : null constraints. (Issue #18390, Issue #18344, PR #18785)
  • Fix Show XML doc for enum fields in external metadata (Issue #17939, PR #18800)
  • Fix nullable types formatting in FSharpType.Format and tooltips to include parentheses. (PR #18842)
  • TypeMismatchDiagnosticExtendedData: fix expected and actual types calculation. (PR #18851)
  • Format top-level generic types using a prefix style in inherit/interface declarations and flexible type annotations. (PR #18897)
  • Parser: fix range for computed binding expressions (PR #18903)
  • Tests: set test source for range debug printing (PR #18879)
  • Checker: fix declaring type for abbreviated types extensions (PR #18909)
  • Caches: type subsumption cache key perf regression (Issue #18925 PR #18926)
  • Ensure that line directives are applied to source identifiers (issue #18908, PR #18918)
  • Fix expected and actual types in ErrorFromAddingTypeEquation message and extended diagnostic data. (PR #18915)
  • Editor: Fix Record fields completion in update record with partial field name. (PR #18946)

Changed

  • Use errorR instead of error in CheckDeclarations.fs when possible. (PR #18645)
  • Parser: Capture named fields block separators. (PR #18857)
  • Type checker: use inner expr range in upcast constraints errors (PR #18850)
  • Import IEnumerable as seq. (PR #18865)

Breaking Changes

  • Scoped Nowarn: Add the #warnon compiler directive (Language suggestion #278, RFC FS-1146 PR, PR #18049 and PR #18637)
  • Simplify creation of FSharpDiagnostics. In a few cases, errors without ranges were assigned to the currently checked file, while in other cases they carried an empty range. The latter is now true in all cases. In a few cases, ranges at eof were corrected, while in others they were not. They are now always left uncorrected. This is a prerequisit for #18553. (PR #18610).
  • SynExprRecordField now includes a range field (PR #18617)
  • Mark Range.Zero as obsolete in favor of Range.range0 (PR #18664)
  • Use Synbinding to model and! (PR #18805)
  • Redesign #line processing. The original positions (unaffected by #line directives) are now kept in the AST, and __LINE__ and __SOURCE_LINE__ show the original line numbers / file names. However, all diagnostics and debug information stays the same (shows the position transformed by the #line directives). (Issue #18553, PR #18699, PR 18828, PR 18829)
  • Unify let, let!, use and use! AST representation. (PR #18825)[^1]

Migration Guidance for AST Users

Note: The unified AST introduces two new boolean fields:

  • isFromSource: Indicates if the binding comes from user-written code (true) or is compiler-generated (false)
  • isBang: Distinguishes computation expression bindings (let!/use! = true) from regular bindings (let/use = false)

1. Pattern Matching Updates

Before:

match expr with
| SynExpr.LetOrUse(isRec, isUse, bindings, body, range, trivia) ->
    // Handle regular let/use
| SynExpr.LetOrUseBang(spBind, isUse, isFromSource, pat, rhs, andBangs, body, range, trivia) ->
    // Handle let!/use!

After:

match expr with
| SynExpr.LetOrUse(isRec, isUse, isFromSource, isBang, bindings, body, range, trivia) ->
    if isBang then
        // This is a let!/use! expression
        match bindings with
        | firstBinding :: andBangs ->
            match firstBinding with
            | SynBinding(headPat = pat; expr = rhs) ->
                // pat and rhs extracted from first binding
                // andBangs contains the and! bindings
        | [] -> // error case
    else
        // This is a regular let/use expression

2. Construction Updates

Before:

// Creating a let! expression
SynExpr.LetOrUseBang(
    bindDebugPoint,
    false,  // isUse
    true,   // isFromSource
    pat,
    rhsExpr,
    andBangs,
    bodyExpr,
    range,
    trivia
)

After:

// Creating a let! expression
let firstBinding = SynBinding(
    accessibility = None,
    kind = SynBindingKind.Normal,
    isInline = false,
    isMutable = false,
    attributes = [],
    xmlDoc = PreXmlDoc.Empty,
    valData = SynInfo.emptySynValData,
    headPat = pat,           // Pattern moved here
    returnInfo = None,
    expr = rhsExpr,          // RHS moved here
    range = range,
    debugPoint = bindDebugPoint,  // Debug point moved here
    trivia = bindingTrivia
)
SynExpr.LetOrUse(
    false,  // isRecursive
    false,  // isUse
    true,   // isFromSource
    true,   // isBang (indicates let!)
    firstBinding :: andBangs,  // All bindings in single list
    bodyExpr,
    range,
    trivia
)

3. Common Migration Patterns

Checking for computation expressions:

// Before
match expr with
| SynExpr.LetOrUseBang _ -> true
| _ -> false

// After
match expr with
| SynExpr.LetOrUse(isBang = true) -> true
| _ -> false

Extracting pattern and expression from let!:

// Before
| SynExpr.LetOrUseBang(_, _, _, pat, rhs, _, _, _, _) ->
    processBinding pat rhs

// After
| SynExpr.LetOrUse(isBang = true; bindings = binding :: _) ->
    match binding with
    | SynBinding(headPat = pat; expr = rhs) ->
        processBinding pat rhs
    | _ -> // error

Processing and! bindings:

// Before
| SynExpr.LetOrUseBang(_, _, _, firstPat, firstRhs, andBangs, _, _, _) ->
    processFirst firstPat firstRhs
    for andBang in andBangs do
        processAndBang andBang

// After
| SynExpr.LetOrUse(isBang = true; bindings = bindings) ->
    match bindings with
    | first :: rest ->
        processBinding first
        for andBang in rest do
            processAndBang andBang
    | [] -> // error

[^1]: See Migration Guidance for AST Users section for detailed information on how to update your code to work with the unified AST representation.

43.9.300 - 2025-05-13

Nuget Nuget

Fixed

  • Fix missing TailCall warning in TOp.IntegerForLoop (PR #18399)
  • Fix classification of nameof in nameof<'T>, match … with nameof ident -> …. (Issue #10026, PR #18300)
  • Fix Realsig+ generates nested closures with incorrect Generic (Issue #17797, PR #17877)
  • Fix optimizer internal error for records with static fields (Issue #18165, PR #18280)
  • Fix nullness warning with flexible types (Issue #18056, PR #18266)
  • Allow first branches of match and if expressions to return nullable results (Issue #18015, PR #18322)
  • Fix internal error when missing measure attribute in an unsolved measure typar. (Issue #7491, PR #18234==
  • Set Cancellable.token from async computation (Issue #18235, PR #18238)
  • Fix missing nullness warning when static upcast dropped nullness (Issue #18232, PR #18261)
  • Cancellable: only cancel on OCE with own token (PR #18277)
  • Cancellable: set token in more places (PR #18283)
  • Cancellable: fix leaking cancellation token (PR #18295)
  • Fix NRE when accessing nullable fields of types within their equals/hash/compare methods (PR #18296)
  • Fix nullness warning for overrides of generic code with nullable type instance (Issue #17988, PR #18337)
  • Unsafe downcast from obj to generic T no longer requires not null constraint on T(Issue #18275, PR #18343)
  • Fix "type inference problem too complicated" for SRTP with T:null and T:struct dummy constraint(Issue #18288, PR #18345)
  • Fix for missing parse diagnostics in TransparentCompiler.ParseAndCheckProject (PR #18366)
  • Miscellanous parentheses analyzer fixes. (PR #18350, PR #18534)
  • Fix duplicate parse error reporting for GetBackgroundCheckResultsForFileInProject (Issue #18379 PR #18380)
  • Fix MethodDefNotFound when compiling code invoking delegate with option parameter (Issue #5171, PR #18385)
  • Fix #r nuget ..." downloads unneeded packages (Issue #18231, PR #18393)
  • Fix checking bug in unpickling PR #18430
  • Reenable β-reduction and subsequent reoptimization of immediately-invoked F#-defined generic delegates. (PR #18401)
  • Fixed #18433, a rare case of an internal error in xml comment processing. (PR #18436)
  • Fix confusing type inference error in task expression (Issue #13789, PR #18450)
  • Fix missing null highlighting in tooltips (PR #18457)
  • Fix range of SynPat.Named doesn't include accessibility (PR #18526)
  • Allow _ in use! bindings values (lift FS1228 restriction) (PR #18487)
  • Make [<CallerMemberName; Struct>] combination work(PR #18444)
  • Fix code completion considers types from own namespace non-imported (PR #18518)
  • Code completion: fix getting qualifier expression in do statements in type decls (PR #18524)
  • Fix parsing errors using anonymous records and units of measures (PR #18543)
  • Fixed: #18441 FSI multi-emit unstable. (PR #18465)
  • Fixed: Allow return, return!, yield, yield! type annotations without parentheses (PR #18533)

Added

  • Added missing type constraints in FCS. (PR #18241)
  • The 'use' keyword can be used on IDisposable|null without nullness warnings (PR #18262)
  • Add support for C# Experimental attribute. (PR #18253)
  • Nullness warnings are issued for signature<>implementation conformance (PR #18186)
  • Symbols: Add FSharpAssembly.IsFSharp (PR #18290)
  • Type checker: don't suppress errors while checking expressions (PR #18311)
  • Type parameter constraint null in generic code will now automatically imply not struct (Issue #18320, PR #18323)
  • Add a switch to determine whether to generate a default implementation body for overridden method when completing. PR #18341
  • Use a more accurate range for CE Combine methods. PR #18394
  • Enable TypeSubsumptionCache for IDE use. PR #18499

Changed

  • FSharpCheckFileResults.ProjectContext.ProjectOptions will not be available when using the experimental Transparent Compiler feature. (PR #18205)
  • Update Obsolete attribute checking to account for DiagnosticId and UrlFormat properties. (PR #18224)
  • Remove Cancellable.UsingToken from tests (PR #18276)
  • Added nullability annotations to .Using builder method for async, task and compiler-internal builders (PR #18292)
  • Warn when unit is passed to an obj-typed argument (PR #18330)
  • Warning for "useless null handling" works with piped syntax constructs now (PR #18331)
  • Make indent in generated overridden member code depend on the context, not fix to 4. (PR #18341)
  • Adjust caller info attribute error message range (PR #18388)
  • Make attribute targets mismatch a warning and not an error (PR #18492)

Breaking Changes

  • Struct unions with overlapping fields now generate mappings needed for reading via reflection (Issue #18121, PR #18274)

43.9.202 - 2025-04-08

Nuget

Fixed

  • Fix missing TailCall warning in Sequential in use scope (PR #17927)
  • Fix false negatives for passing null to "obj" arguments. Only "obj | null" can now subsume any type (PR #17757)
  • Fix internal error when calling 'AddSingleton' and other overloads only differing in generic arity (PR #17804)
  • Fix extension methods support for non-reference system assemblies (PR #17799)
  • Ensure frameworkTcImportsCache mutations are threadsafe. (PR #17795)
  • Disallow abstract member with access modifiers in sig file. (PR #17802)
  • Fix concurrency issue in ILPreTypeDefImpl (PR #17812)
  • Fix nullness inference for member val and other OO scenarios (PR #17845)
  • Fix internal error when analyzing incomplete inherit member (PR #17905)
  • Add warning when downcasting from nullable type to non-nullable (PR #17965)
  • Fix missing nullness warning in case of method resolution multiple candidates (PR #17917)
  • Fix failure to use bound values in when clauses of try-with in seq expressions (PR #17990)
  • Fix locals allocating for the special copyOfStruct defensive copy (PR #18025)
  • Fix lowering of computed array expressions when the expression consists of a simple mapping from a uint64 or unativeint array. PR #18081
  • Add missing nullable-metadata for C# consumers of records,exceptions and DU subtypes generated from F# code. PR #18079
  • Reduce excess memory usage in TransparentCompiler. PR #17543
  • Fix a race condition in file book keeping in the compiler service (#18008)
  • Fix trimming '%' characters when lowering interpolated string to a concat call PR #18123
  • Completion: fix qualified completion in sequence expressions PR #18111
  • Symbols: try to use ValReprInfoForDisplay in Mfv.CurriedParameterGroups (PR #18124)
  • Shim/file system: fix leaks of the shim PR #18144

Added

  • Let dotnet fsi --help print a link to the documentation website. (PR #18006)
  • Deprecate places where seq can be omitted. (Language suggestion #1033, PR #17772)
  • Support literal attribute on decimals (PR #17769)
  • Added type conversions cache, only enabled for compiler runs, guarded by language version preview (PR #17668)
  • Added project property ParallelCompilation which turns on graph based type checking, parallel ILXGen and parallel optimization. By default on for users of langversion=preview (PR #17948)
  • Adding warning when consuming generic method returning T|null for types not supporting nullness (structs,anons,tuples) (PR #18057)
  • Sink: report SynPat.ArrayOrList type (PR #18127)
  • Show the default value of compiler options (PR #18054)
  • Support ValueOption + Struct attribute as optional parameter for methods (Language suggestion #1136, PR #18098)
  • Cancellable: add safer APIs to check the token (PR #18175)

Changed

  • Make ILTypeDef interface impls calculation lazy. (PR #17392)
  • Remove non-functional useSyntaxTreeCache option. (PR #17768)
  • Better ranges for CE let! and use! error reporting. (PR #17712)
  • Better ranges for CE do! error reporting. (PR #17779)
  • Better ranges for CE return, yield, return! and yield! error reporting. (PR #17792)
  • Better ranges for CE match!. (PR #17789)
  • Better ranges for CE use error reporting. (PR #17811)
  • Better ranges for inherit error reporting. (PR #17879)
  • Better ranges for inherit struct error reporting. (PR #17886)
  • Warn on uppercase identifiers in patterns. (PR #15816)
  • Better ranges for inherit objects error reporting. (PR #17893)
  • Better ranges for #nowarn error reporting; bring back #nowarn warnings for --langVersion:80; add warnings under feature flag (PR #17871)
  • Better ranges for #nowarn error reporting; bring back #nowarn warnings for --langVersion:80; add warnings under feature flag (PR #17871)
  • CheckAndThrow can be invoked only from within Cancellable context (PR #18037)
  • Make ILTypeDef base type calculation lazy. (PR #18005)
  • Revert EnforceAttributeTargets Feature. (PR #18005)

Breaking Changes

43.9.201 - 2025-02-11

Nuget

Fixed

  • Fix Realsig+ generates nested closures with incorrect Generic (Issue #17797, PR #17877)
  • Fix missing TailCall warning in Sequential in use scope (PR #17927)
  • Fix false negatives for passing null to "obj" arguments. Only "obj | null" can now subsume any type (PR #17757)
  • Fix internal error when calling 'AddSingleton' and other overloads only differing in generic arity (PR #17804)
  • Fix extension methods support for non-reference system assemblies (PR #17799)
  • Ensure frameworkTcImportsCache mutations are threadsafe. (PR #17795)
  • Disallow abstract member with access modifiers in sig file. (PR #17802)
  • Fix concurrency issue in ILPreTypeDefImpl (PR #17812)
  • Fix nullness inference for member val and other OO scenarios (PR #17845)
  • Add warning when downcasting from nullable type to non-nullable (PR #17965)
  • Fix missing nullness warning in case of method resolution multiple candidates (PR #17917)
  • Fix failure to use bound values in when clauses of try-with in seq expressions (PR #17990)
  • Fix locals allocating for the special copyOfStruct defensive copy (PR #18025)
  • Fix lowering of computed array expressions when the expression consists of a simple mapping from a uint64 or unativeint array. PR #18081
  • Add missing nullable-metadata for C# consumers of records,exceptions and DU subtypes generated from F# code. PR #18079
  • Reduce excess memory usage in TransparentCompiler. PR #17543
  • Fix a race condition in file book keeping in the compiler service (#18008)
  • Fix trimming '%' characters when lowering interpolated string to a concat call PR #18123
  • Completion: fix qualified completion in sequence expressions PR #18111
  • Symbols: try to use ValReprInfoForDisplay in Mfv.CurriedParameterGroups (PR #18124)
  • Shim/file system: fix leaks of the shim PR #18144
  • fsi: fix auto-loading of script file inside NuGet package (PR #18177)
  • Fix for Obsolete attribute warning/error not taken into account when used with a unit of measure PR #18182

Added

  • Let dotnet fsi --help print a link to the documentation website. (PR #18006)
  • Deprecate places where seq can be omitted. (Language suggestion #1033, PR #17772)
  • Support literal attribute on decimals (PR #17769)
  • Added type conversions cache, only enabled for compiler runs, guarded by language version preview (PR #17668)
  • Added project property ParallelCompilation which turns on graph based type checking, parallel ILXGen and parallel optimization. By default on for users of langversion=preview (PR #17948)
  • Adding warning when consuming generic method returning T|null for types not supporting nullness (structs,anons,tuples) (PR #18057)
  • Sink: report SynPat.ArrayOrList type (PR #18127)
  • Show the default value of compiler options (PR #18054)
  • Support ValueOption + Struct attribute as optional parameter for methods (Language suggestion #1136, PR #18098)
  • Cancellable: add safer APIs to check the token (PR #18175)

Changed

  • Make ILTypeDef interface impls calculation lazy. (PR #17392)
  • Remove non-functional useSyntaxTreeCache option. (PR #17768)
  • Better ranges for CE let! and use! error reporting. (PR #17712)
  • Better ranges for CE do! error reporting. (PR #17779)
  • Better ranges for CE return, yield, return! and yield! error reporting. (PR #17792)
  • Better ranges for CE match!. (PR #17789)
  • Better ranges for CE use error reporting. (PR #17811)
  • Better ranges for inherit error reporting. (PR #17879)
  • Better ranges for inherit struct error reporting. (PR #17886)
  • Warn on uppercase identifiers in patterns. (PR #15816)
  • Better ranges for inherit objects error reporting. (PR #17893)
  • Better ranges for #nowarn error reporting; bring back #nowarn warnings for --langVersion:80; add warnings under feature flag (PR #17871)
  • Better ranges for #nowarn error reporting; bring back #nowarn warnings for --langVersion:80; add warnings under feature flag (PR #17871)
  • CheckAndThrow can be invoked only from within Cancellable context (PR #18037)
  • Make ILTypeDef base type calculation lazy. (PR #18005)
  • Removed redundant hash directives around nullness syntax (Issue #18601, PR #18203, PR #18207)

Breaking Changes

  • Aliasing StructAttribute will now produce a warning (part of Language suggestion #1136, PR #18098)
  • The baseType field in SynMemberDefn.Inherit has now type SynType option, to fix internal error when analyzing incomplete inherit member (PR #17905)

43.9.100 - 2024-11-12

Nuget Nuget

Fixed

  • Fix wrong TailCall warning (Issue #17604, PR #17637)
  • Compiler hangs when compiling inline recursive invocation (Issue #17376, PR #17394)
  • Fix reporting IsFromComputationExpression only for CE builder type constructors and let bindings. (PR #17375)
  • Optimize simple mappings in comprehensions when the body of the mapping has let-bindings and/or sequential expressions before a single yield. (PR #17419)
  • C# protected property can be assigned in F# inherit constructor call. (Issue #13299, PR #17391)
  • MethodAccessException on equality comparison of a record with private fields. (Issue #17447, PR #17391)
  • Fix function implicit conversion. (Issue #7401, PR #17487)
  • Compiler fails to recognise namespace in FQN with enabled GraphBasedChecking. (Issue #17508, PR #17510)
  • Fix missing message for type error (FS0001). (Issue #17373, PR #17516)
  • Nullness export - make sure option<> and other UseNullAsTrueValue types are properly annotated as nullable for C# and reflection consumers PR #17528
  • MethodAccessException on equality comparison of a type private to module. (Issue #17541, PR #17548)
  • Fixed checking failure when global namespace is involved with enabled GraphBasedChecking (PR #17553)
  • Add missing byte chars notations, enforce limits in decimal notation in byte char & string (Issues #15867, #15868, #15869, PR #15898)
  • Parentheses analysis: keep extra parentheses around unit & tuples in method definitions. (PR #17618)
  • Fix IsUnionCaseTester throwing for non-methods/properties #17301
  • Fix xmlc doc tooltip display for nullable types #17741
  • Consider open type used when the type is an enum and any of the enum cases is used unqualified. (PR #17628)
  • Guard for possible StackOverflowException when typechecking non recursive modules and namespaces (PR #17654)
  • Nullable - fix for processing System.Nullable types with nesting (PR #17736)
  • Fixes for the optimization of simple mappings in array and list comprehensions. (Issue #17708, PR #17711)

Added

Changed

  • Change compiler default setting realsig+ when building assemblies (Issue #17384, PR #17378)
  • Change compiler default setting for compressedMetadata (Issue #17379, PR #17383)
  • Treat { new Foo() } as SynExpr.ObjExpr (PR #17388)
  • Optimize metadata reading for type members and custom attributes. (PR #17364)
  • Enforce AttributeTargets on unions. (PR #17389)
  • Applied nullable reference types to FSharp.Compiler.Service itself (PR #15310)
  • Ensure that isinteractive multi-emit backing fields are not public. (Issue #17439), (PR #17439)
  • Better error reporting for unions with duplicated fields. (PR #17521)
  • Better CE error reporting when using use! with and! (PR #17671)
  • Better error reporting for let bindings. (PR #17601)
  • Optimize ILTypeDef interface impls reading from metadata. (PR #17382)
  • Make ILTypeDef interface impls calculation lazy. (PR #17392)
  • Better error reporting for active patterns. (PR #17666)
  • Multiple fsi sessions use separate temporary directories (PR #17760)

Breaking Changes

43.8.400 - 2024-08-13

Nuget Nuget Nuget

Fixed

  • Enforce AttributeTargets on records. (PR #17207)
  • Fix a false positive of the [<TailCall>] analysis in combination with async. (Issue #17237, PR #17241)
  • Extended #help directive in fsi to show documentation in the REPL. (PR #17140)
  • Fix internal error when dotting into delegates with multiple type parameters. (PR #17227)
  • Error for partial implementation of interface with static and non-static abstract members. (Issue #17138, PR #17160)
  • Optimize simple mappings with preludes in computed collections. (PR #17067)
  • Improve error reporting for abstract members when used in classes. (PR #17063)
  • Improve error reporting when property has same name as DU case. (Issue #16646, PR #17088)
  • Make typechecking of indexed setters with tuples on the right more consistent. (Issue #16987, PR #17017)
  • Static abstract method on classes no longer yields internal error. (Issue #17044, PR #17055)
  • Disallow calling abstract methods directly on interfaces. (Issue #14012, Issue #16299, PR #17021)
  • Various parenthesization API fixes. (PR #16977)
  • Files passed with -embed:relative/path/to/file are not embedded. (Issue #16768)
  • Fix bug in optimization of for-loops over integral ranges with steps and units of measure. (Issue #17025, PR #17040, PR #17048)
  • Fix calling an overridden virtual static method via the interface (PR #17013)
  • Fix state machines compilation, when big decision trees are involved, by removing code split when resumable code is detected (PR #17076)
  • Fix for exponential runtime in CE builders when using nested implicit yields PR #17096
  • Fix several AND operator parser bugs and regressions (Issue #16447, Issue #17134, Issue #16309, PR #17113)
  • Treat exceptions as types in a namespace for graph based type checking (Issue #17262, PR #17268)
  • FS0243 - Unrecognized option: '--realsig-' #17561 (Issue #17561, PR #17268)

Added

Changed

  • Enforce AttributeTargets.Interface (PR #17173)
  • Minor compiler perf improvements. (PR #17130)
  • Improve error messages for active pattern argument count mismatch (PR #16846, PR #17186)
  • AsyncLocal diagnostics context. (PR #16779)
  • Reduce allocations in compiler checking via ValueOption usage (PR #16822)
  • Use AsyncLocal instead of ThreadStatic to hold Cancellable.Token (PR #17156)
  • Showing and inserting correct name of entities from unopened namespace/module (Issue #14375, PR #17261)
  • Improve completion after method/property override (PR #17292)
  • Support lazy custom attributes calculation for ILTypeDef public API, improve ExtensionAttribute presence detecting perf. (PR #16168)

43.8.300 - 2024-05-14

Nuget Nuget

Fixed

  • Fix a false positive of the [<TailCall>] analysis in combination with yield!. (PR #16933)
  • Improve error reporting: ambiguous override method in object expression. (PR #16985)
  • Don't blow the stack when traversing deeply nested sequential expressions. (PR #16882)
  • Fix wrong range start of INTERP_STRING_END. (PR #16774, PR #16785)
  • Fix missing warning for recursive calls in list comprehensions. (PR #16652)
  • Code generated files with > 64K methods and generated symbols crash when loaded. Use inferred sequence points for debugging. (Issue #16399, #PR 16514)
  • nameof Module expressions and patterns are processed to link files in --test:GraphBasedChecking. (PR #16550, PR #16743)
  • Graph Based Checking doesn't throw on invalid parsed input so it can be used for IDE scenarios (PR #16575, PR #16588, PR #16643)
  • Various parenthesization API fixes. (PR #16578, PR #16666, PR #16901, PR #16973, PR #17012)
  • Keep parens for problematic exprs (if, match, etc.) in $"{(…):N0}", $"{(…),-3}", etc. (PR #16578)
  • Fix crash in DOTNET_SYSTEM_GLOBALIZATION_INVARIANT mode #PR 16471)
  • Fix16572 - Fixed the preview feature enabling Is properties for union case did not work correctly with let .rec and .fsi files (PR #16657)
  • [<CliEvent>] member should not produce property symbol. (Issue #16640, PR #16658)
  • Fix discriminated union initialization. (#PR 16661)
  • Allow calling method with both Optional and ParamArray. (#PR 16688, suggestions #1120)
  • Return diagnostics that got suppressed by errors in previous files. (PR #16719)
  • Fix release inline optimization, which leads to MethodAccessException if used with `assembly:InternalsVisibleTo`` attribute. (Issue #16105, (PR #16737)
  • Enforce AttributeTargets on let values and functions. (PR #16692)
  • Enforce AttributeTargets on union case declarations. (PR #16764)
  • Disallow using base to invoke an abstract base method. (Issue #13926, PR #16773)
  • Parser: more unfinished member recovery (PR #16835)
  • Enforce AttributeTargets on implicit constructors. (PR #16845)
  • Enforce AttributeTargets on structs and classes (PR #16790)
  • Parser: fix pattern range for idents with trivia (PR #16824)
  • Fix broken code completion after a record type declaration (PR #16813)
  • Enforce AttributeTargets on enums (PR #16887)
  • Completion: fix for unfinished record field decl (PR #16893)
  • Enforce AttributeTargets on delegates (PR #16891)
  • Obsolete attribute is ignored in constructor property assignment (PR #16900)
  • Completion: fix completion in empty dot lambda prefix (#16829)
  • Fix StackOverflow when checking non-recursive bindings in module or namespace in fscAnyCpu/fsiAnyCpu. (PR #16908)
  • Removes signature file adjacency check in Transparent Compiler Issue #17082 PR #17085

Added

  • The stackguard depth for ILPdbWriter.unshadowScopes can be modified via the environment variable FSHARP_ILPdb_UnshadowScopes_StackGuardDepth(PR #16583)
  • Parser recovers on complex primary constructor patterns, better tree representation for primary constructor patterns. (PR #16425)
  • Name resolution: keep type vars in subsequent checks (PR #16456)
  • Higher-order-function-based API for working with the untyped abstract syntax tree. (PR #16462)
  • PrettyNaming: make DoesIdentifierNeedBackticks public (PR #16613)
  • Add switch to generate types and members with IL visibility that accurately represents their F# visibility. (PR #15484
  • Allow returning bool instead of unit option for partial active patterns. (Language suggestion #1041, PR #16473)
  • Symbols: Add GenericArguments to FSharpEntity (PR #16470)
  • Parser: more 'as' pattern recovery (PR #16837)
  • Add extended data for DefinitionsInSigAndImplNotCompatibleAbbreviationsDiffer (FS0318). (PR #16811))
  • Checker/patterns: recover on unresolved long identifiers (PR #16842)
  • SynExprSequentialTrivia (Issue #16914, PR #16981)

Changed

  • Autogenerated .Is* members for unions skipped for single-case unions. (PR 16571)
  • implicitCtorSynPats in SynTypeDefnSimpleRepr.General is now SynPat option instead of SynSimplePats option. (PR #16425)
  • SyntaxVisitorBase<'T>.VisitSimplePats now takes SynPat instead of SynSimplePat list. (PR #16425)
  • Reduce allocations in compiler checking via ValueOption usage (PR #16323, PR #16567)
  • Reverted #16348 ThreadStatic CancellationToken changes to improve test stability and prevent potential unwanted cancellations. (PR #16536)
  • Refactored parenthesization API. ([PR #16461])(https://github.com/dotnet/fsharp/pull/16461))
  • Optimize some interpolated strings by lowering to string concatenation. (PR #16556)
  • Speed up for x in xs -> … in list & array comprehensions in certain scenarios. (PR #16948)
  • Integral range optimizations. (PR #16650, PR #16832, PR #16947)

F# 8.0.202 - Not on NuGet

Fixed

nameof Module expressions and patterns are processed to link files in --test:GraphBasedChecking. (PR #16570, PR #16747)

43.8.200 - 2024-02-13

Nuget

Fixed

Added

  • Raise a new error when interfaces with auto properties are implemented on constructor-less types. (PR #16352)
  • Allow usage of [<TailCall>] with older FSharp.Core package versions. (PR #16373)
  • Parser recovers on unfinished as patterns. (PR #16404)
  • Allow type-checking of unfinished object expressions. (PR #16413)
  • Parser recovers on unfinished enum case declarations. (PR #16401)
  • Parser recovers on unfinished record declarations. (PR #16357)
  • MutableKeyword to SynFieldTrivia (PR #16357)
  • Added support for a new parameterless constructor for CustomOperationAttribute, which, when applied, will use method name as keyword for custom operation in computation expression builder. (PR #16475, part of implementation for fslang-suggestions/1250)
  • Compiler service API for getting ranges of unnecessary parentheses. (PR #16079 et seq.)

Changed

  • Speed up unused opens handling for empty results. (PR #16502)

43.8.100 - 2023-11-14

Nuget Nuget Nuget

Fixed

  • Include the get,set keywords in the range of SynMemberDefn.AutoProperty. (PR #15835)
namespace System
namespace System.IO
namespace System.Xml
namespace System.Xml.Linq
namespace Markdig
module Common
val path: string
Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.
type Path =
  static member ChangeExtension: path: string * extension: string -> string
  static member Combine: path1: string * path2: string -> string + 4 overloads
  static member EndsInDirectorySeparator: path: ReadOnlySpan<char> -> bool + 1 overload
  static member Exists: path: string -> bool
  static member GetDirectoryName: path: ReadOnlySpan<char> -> ReadOnlySpan<char> + 1 overload
  static member GetExtension: path: ReadOnlySpan<char> -> ReadOnlySpan<char> + 1 overload
  static member GetFileName: path: ReadOnlySpan<char> -> ReadOnlySpan<char> + 1 overload
  static member GetFileNameWithoutExtension: path: ReadOnlySpan<char> -> ReadOnlySpan<char> + 1 overload
  static member GetFullPath: path: string -> string + 1 overload
  static member GetInvalidFileNameChars: unit -> char array
  ...
Path.Combine(paths: System.ReadOnlySpan<string>) : string
Path.Combine( paths: string array) : string
Path.Combine(path1: string, path2: string) : string
Path.Combine(path1: string, path2: string, path3: string) : string
Path.Combine(path1: string, path2: string, path3: string, path4: string) : string
Renders the release notes of a package: one section per notes file in `path`, ordered by
package version, newest first. Which package versions belong to a notes file is looked up
from the source commit of each package on NuGet, from `minPackageVersion` on.

Notes without a package are either the upcoming release, placed at the top as `upcomingVersion`,
or an old servicing version that never shipped, placed where `packageVersionOfNotes` puts it.

val renderPackageReleaseNotes:
    packageName: string ->
    path: string ->
    minPackageVersion: System.Version ->
    packageVersionOfNotes: (System.Version -> System.Version) ->
    upcomingVersion: System.Version ->
        string
Multiple items
Represents the version number of an assembly, operating system, or the common language runtime. This class cannot be inherited.
type Version =
  interface ICloneable
  interface IComparable
  interface IComparable<Version>
  interface IEquatable<Version>
  interface IFormattable
  interface ISpanFormattable
  interface IUtf8SpanFormattable
  interface IUtf8SpanParsable<Version>
  new: unit -> unit + 4 overloads
  member Clone: unit -> obj
  ...

--------------------
System.Version() : System.Version
System.Version(version: string) : System.Version
System.Version(major: int, minor: int) : System.Version
System.Version(major: int, minor: int, build: int) : System.Version
System.Version(major: int, minor: int, build: int, revision: int) : System.Version
val notes: System.Version
Gets the value of the major component of the version number for the current Version object.

returns: The major version number.

property System.Version.Major: int with get
Gets the value of the build component of the version number for the current Version object.

returns: The build number, or -1 if the build number is undefined.

property System.Version.Build: int with get
The F# version main is at, and the FCS version that goes with it
val upcomingFcsVersion: System.Version

    Type something to start searching.