Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosen casting requirements on switch expression conversion #77139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RenderMichael
Copy link
Contributor

Fixes #77084

The fix for the old issue #58636 was more conservative than it needed to be. This allows eg. bool to be returned to an object target in a switch expression arm without a cast.

@RenderMichael RenderMichael requested a review from a team as a code owner February 10, 2025 20:28
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 10, 2025
@dotnet-policy-service dotnet-policy-service bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary cast added to the default arm in the IDE0066 fixer
1 participant