Skip to content

Remove always-on AndBang language feature flag - #20223

Open
T-Gro wants to merge 3 commits into
mainfrom
fix/issue-20144
Open

Remove always-on AndBang language feature flag#20223
T-Gro wants to merge 3 commits into
mainfrom
fix/issue-20144

Conversation

@T-Gro

@T-Gro T-Gro commented Aug 6, 2026

Copy link
Copy Markdown
Member

Fixes #20144

LanguageFeature.AndBang has been enabled for every selectable --langversion since F# 5.0, so its flag could never be turned off. Removed the dead flag and collapsed the guarded computation-expression code to its enabled behaviour; --disableLanguageFeature:AndBang is no longer a recognised feature name.

Copilot and others added 2 commits August 6, 2026 13:51
…ssions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@T-Gro T-Gro added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Aug 6, 2026
The CheckCodeFormatting CI job failed because the collapsed AndBang gate
left a two-line let binding that Fantomas collapses to a single line.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

Remove always-on language feature flag: AndBang

1 participant