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

Don't treat user-defined casts as constants in analyzers for "use pattern matching" and "convert if to switch" #69458

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

Blokyk
Copy link
Contributor

@Blokyk Blokyk commented Aug 10, 2023

Fixes #66787 by treating user-defined conversion operations as being non-constant.

@Blokyk Blokyk requested a review from a team as a code owner August 10, 2023 06:06
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 10, 2023
@ghost ghost added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Aug 10, 2023
Co-authored-by: Cyrus Najmabadi <cyrus.najmabadi@gmail.com>
auto-merge was automatically disabled September 24, 2023 21:22

Head branch was pushed to by a user without write access

@Blokyk
Copy link
Contributor Author

Blokyk commented Sep 25, 2023

@CyrusNajmabadi After looking through the fails, I don't think they're related to my changes, any idea why that's happening?

@CyrusNajmabadi
Copy link
Member

Just a flakey test. I'm rerunning it. Thanks!

@CyrusNajmabadi CyrusNajmabadi merged commit 6ae46d6 into dotnet:main Sep 25, 2023
@ghost ghost added this to the Next milestone Sep 25, 2023
@Cosifne Cosifne modified the milestones: Next, 17.8 P3 Sep 25, 2023
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
Projects
None yet
3 participants