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 let inapplicable members participate in ORPA filtering #75878

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

333fred
Copy link
Member

@333fred 333fred commented Nov 12, 2024

Fixes #75871.

@333fred 333fred requested a review from a team as a code owner November 12, 2024 23:42
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 12, 2024
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 1)

@@ -36,6 +36,7 @@ public bool HasValue
get { return this.Kind != OperatorAnalysisResultKind.Undefined; }
}

bool IMemberResolutionResultWithPriority<MethodSymbol>.IsApplicable => IsValid;
Copy link
Member

Choose a reason for hiding this comment

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

nit: consider renaming existing IsValid property to IsApplicable instead. There's not much benefit of having two names for the same thing.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd rather keep this scoped. If you want to come back with a refactoring of this I would be happy to review, but I don't want to conflate it with this change.

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 1)

@jcouv jcouv self-assigned this Nov 13, 2024
@333fred 333fred merged commit 2f1a4d2 into dotnet:main Nov 13, 2024
24 checks passed
@333fred 333fred deleted the orpa-applicability-filtering branch November 13, 2024 01:45
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extension method lookup results in unexpected behavior with OverloadResolutionPriority
3 participants