Skip to content

Add note about exhaustive enum matching - #46067

Merged
T-Gro merged 2 commits into
dotnet:mainfrom
ieviev:patch-1
May 30, 2025
Merged

Add note about exhaustive enum matching#46067
T-Gro merged 2 commits into
dotnet:mainfrom
ieviev:patch-1

Conversation

@ieviev

@ievievieviev commented May 9, 2025

Copy link
Copy Markdown
Contributor

Assuming the passed enum is defined / validation is done beforehand this is important for ensuring all cases are covered.

related to dotnet/fsharp#4522

image


Internal previews

📄 File🔗 Preview link
docs/fsharp/language-reference/enumerations.mdEnumerations

@ieviev
ieviev requested review from a team, BillWagner and KathleenDollard as code ownersMay 9, 2025 19:55
@dotnetrepomandotnetrepomanBot added this to the May 2025 milestone May 9, 2025
@dotnet-policy-servicedotnet-policy-serviceBot added dotnet-fsharp/svc community-contribution Indicates PR is created by someone from the .NET community. labels May 9, 2025
Comment threaddocs/fsharp/language-reference/enumerations.md
Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>
@ieviev

Copy link
Copy Markdown
ContributorAuthor

perhaps related as well now that it is merged: dotnet/fsharp#18049

@T-Gro
T-Gro enabled auto-merge (squash) May 30, 2025 10:59
@T-Gro
T-Gro merged commit 278b13f into dotnet:mainMay 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contributionIndicates PR is created by someone from the .NET community.dotnet-fsharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ieviev@T-Gro