Set the default F# language version to 11.0 - #20219
Open
T-Gro wants to merge 5 commits into
Open
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The default language version bump to 11.0 turns on DirectDelegateConstruction, ErrorOnMissingSignatureAttribute (FS3888 warning->error) and ExceptionFieldSerializationSupport by default. Pin the tests that capture the pre-11 (feature-off) behavior to --langversion:10.0 so they keep exercising it; the 11.0 behavior is already covered by the existing preview/explicit twins. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…able-fsharp-11-default
Contributor
|
…lt bump DirectDelegateConstruction (on by default at 11.0) collapses the delegate-from-static-method closures these baselines expect. The 11.0 form is covered by EmittedIL/DirectDelegates. The EventHandler case is WinForms-gated so it only surfaces on Windows CI. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
T-Gro
enabled auto-merge (squash)
August 6, 2026 12:35
Two net472/Desktop-only tests were masked off-Windows and only broke on the Windows CI legs after the default language version moved to 11.0: - neg12 (typecheck/sigs): AccessProtectedBaseFieldFromClosure is now on by default, so the protected-member-from-closure cases compile and three FS0491 baseline errors vanish. Pinned to 10.0; 11.0 behavior is covered by dedicated conformance tests. - core/attributes (FSC_OPTIMIZED + FSI): ErrorOnMissingSignatureAttribute turns FS3888 (attribute present on impl but not signature) from warning into error. The test deliberately exercises this sig/impl attribute difference. Pinned to 10.0; 11.0 behavior is covered by Conformance/Signatures/SignatureEnforcedAttributes. Adds a V10 case to the test LangVersion DU (ScriptHelpers.fs) and the two exhaustive match sites (ScriptHelpers baseArgs, FsharpSuiteMigrated adjustVersion). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 031e1fed-5836-4262-b22e-b0ebcd96c31b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the default language version (
--langversion:default/latest/latestmajor) from 10.0 to 11.0, so the features stabilized into F# 11.0 in #20199 are now on by default with a .NET 11 SDK.FromEndSlicingintentionally stays inpreview.A handful of EmittedIL/signature tests that capture the pre-11 behavior are pinned to
--langversion:10.0so their existing baselines stay valid; the 11.0 behavior of those features is already covered by the existing preview twins.