Skip to content

Remove always-on WildCardInForLoop language feature flag - #20221

Open
T-Gro wants to merge 3 commits into
dotnet:mainfrom
T-Gro:fix/issue-20142
Open

Remove always-on WildCardInForLoop language feature flag#20221
T-Gro wants to merge 3 commits into
dotnet:mainfrom
T-Gro:fix/issue-20142

Conversation

@T-Gro

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

Copy link
Copy Markdown
Member

Fixes #20142

LanguageFeature.WildCardInForLoop has shipped since F# 4.7 and is enabled for every accepted --langversion (minimum 8.0), so the flag could never be turned off. Removed the dead flag and collapsed the guarded parse of for _ = … to … to its enabled behaviour. --disableLanguageFeature:WildCardInForLoop is no longer a recognised feature name.

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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
@github-actions github-actions Bot added the AI-Tooling-Check-Scanned-Clean Tooling check: diff analyzed, no interesting infrastructure files label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Tooling-Check-Scanned-Clean Tooling check: diff analyzed, no interesting infrastructure files 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: WildCardInForLoop

2 participants