Skip to content

SwitchBinder.KeyForConstant: nint/nuint values should not collide with values for constants of other types.#81794

Merged
AlekseyTs merged 3 commits into
dotnet:mainfrom
AlekseyTs:Issue81784
Jan 7, 2026
Merged

SwitchBinder.KeyForConstant: nint/nuint values should not collide with values for constants of other types.#81794
AlekseyTs merged 3 commits into
dotnet:mainfrom
AlekseyTs:Issue81784

Conversation

@AlekseyTs

Copy link
Copy Markdown
Contributor

Fixes #81784

@AlekseyTs AlekseyTs requested a review from a team as a code owner December 23, 2025 23:07
@AlekseyTs

Copy link
Copy Markdown
Contributor Author

@dotnet/roslyn-compiler Please review

Comment thread src/Compilers/CSharp/Test/Emit3/Semantics/PatternSwitchTests.cs Outdated
@AlekseyTs AlekseyTs requested review from a team and 333fred December 26, 2025 16:17
@AlekseyTs

Copy link
Copy Markdown
Contributor Author

@dotnet/roslyn-compiler Please review

1 similar comment
@AlekseyTs

Copy link
Copy Markdown
Contributor Author

@dotnet/roslyn-compiler Please review

@AlekseyTs

Copy link
Copy Markdown
Contributor Author

@dotnet/roslyn-compiler For a second review

1 similar comment
@AlekseyTs

Copy link
Copy Markdown
Contributor Author

@dotnet/roslyn-compiler For a second review

return;
}

var source = $$$"""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: only two dollars seem needed here.

@AlekseyTs AlekseyTs merged commit f40609b into dotnet:main Jan 7, 2026
25 checks passed
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Jan 7, 2026
@davidwengier davidwengier modified the milestones: Next, 18.4 Jan 27, 2026
@akhera99 akhera99 modified the milestones: 18.4, 18.5 Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug with goto case (n{u}int)myconstant when a prior case myconstant: exists before it

5 participants