Skip to content

Remove always-on NullableOptionalInterop language feature flag - #20378

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

Remove always-on NullableOptionalInterop language feature flag#20378
T-Gro wants to merge 3 commits into
dotnet:mainfrom
T-Gro:fix/issue-20154

Conversation

@T-Gro

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

Copy link
Copy Markdown
Member

Fixes #20154

LanguageFeature.NullableOptionalInterop has been permanently enabled since F# 5.0 (the minimum accepted --langversion is 8.0), so its flag could never be turned off. Removed the dead flag and collapsed every guarded site to its enabled path. As a consequence, --disableLanguageFeature:NullableOptionalInterop is no longer a recognized feature name.

Copilot and others added 2 commits August 26, 2026 17:29
The LanguageFeature.NullableOptionalInterop flag is permanently enabled
since the minimum accepted --langversion is 8.0. Remove the dead
SupportsFeature checks in the Checking layer and simplify the surrounding
branches, deleting the now-unreachable match arms. No behavioural change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The NullableOptionalInterop language feature shipped in F# 5.0 and is
permanently enabled because the minimum accepted --langversion is 8.0.
Remove the now-unused union case, features-map entry, GetFeatureString
arm, and the featureNullableOptionalInterop resource string, then
regenerate the xlf localization files via /t:UpdateXlf.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 26, 2026
@github-actions

github-actions Bot commented Aug 26, 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

@github-actions github-actions Bot added the ⚠️ Affects-Compiler-Output Tooling check: PR touches IL emission or codegen label Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Tooling Safety Check — Affects-Compiler-Output
Affects-Compiler-Output: removes LanguageFeature flag, changes compiler behavior

Generated by PR Tooling Safety Check · opus46 4.4M ·

@T-Gro T-Gro added NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes and removed NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes labels Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Affects-Compiler-Output Tooling check: PR touches IL emission or codegen 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: NullableOptionalInterop

1 participant