Skip to content

Conversation

@Youssef1313
Copy link
Member

No description provided.

@Youssef1313 Youssef1313 requested a review from a team as a code owner August 30, 2025 19:52
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Aug 30, 2025
@CyrusNajmabadi CyrusNajmabadi merged commit a2075fd into dotnet:main Aug 31, 2025
24 checks passed
@CyrusNajmabadi
Copy link
Member

Thanks!

@CyrusNajmabadi
Copy link
Member

Ack. Sorry. I didn't realize this was in CA. This will need a second review.

@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 31, 2025
@Youssef1313 Youssef1313 deleted the unused-resources branch August 31, 2025 04:31
<data name="ERR_V6SwitchGoverningTypeValueExpected" xml:space="preserve">
<value>A switch expression or case label must be a bool, char, string, integral, enum, or corresponding nullable type in C# 6 and earlier.</value>
</data>
<data name="ERR_IntegralTypeValueExpected" xml:space="preserve">
Copy link
Contributor

Choose a reason for hiding this comment

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

ERR_IntegralTypeValueExpected

Are there matching members in an error enum? I guess the members should be removed, but the values should be kept reserved (unless the members were not shipped yet).

Copy link
Member Author

Choose a reason for hiding this comment

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

@AlekseyTs

// ERR_V6SwitchGoverningTypeValueExpected shares the same error code (CS0151) with ERR_IntegralTypeValueExpected in Dev10 compiler.
// However ERR_IntegralTypeValueExpected is currently unused and hence being removed. If we need to generate this error in future
// we can use error code CS0166. CS0166 was originally reserved for ERR_SwitchFallInto in Dev10, but was never used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants