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

Adjust overload resolution priority from LDM #74428

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

333fred
Copy link
Member

@333fred 333fred commented Jul 17, 2024

LDM today decided that on older language versions, we shouldn't influence overload resolution from OverloadResolutionPriority. It also decided that we should disallow the attribute on local functions.

LDM today decided that on older language versions, we shouldn't influence overload resolution from OverloadResolutionPriority. It also decided that we should disallow the attribute on local functions.
@333fred 333fred requested a review from a team as a code owner July 17, 2024 22:14
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 17, 2024
@333fred
Copy link
Member Author

333fred commented Jul 17, 2024

@jcouv @cston for review.

@@ -1712,10 +1712,15 @@ private int GetTheBestCandidateIndex<TMember>(ArrayBuilder<MemberResolutionResul
return currentBestIndex;
}

private static void RemoveLowerPriorityMembers<TMemberResolution, TMember>(ArrayBuilder<TMemberResolution> results)
private void RemoveLowerPriorityMembers<TMemberResolution, TMember>(ArrayBuilder<TMemberResolution> results)
Copy link
Member

Choose a reason for hiding this comment

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

Let's also incorporate the change into the spec

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 Jul 18, 2024
@333fred 333fred merged commit 4504c75 into dotnet:main Jul 18, 2024
24 checks passed
@333fred 333fred deleted the overload-resolution-followup branch July 18, 2024 04:59
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 18, 2024
@RikkiGibson RikkiGibson modified the milestones: Next, 17.12 P1 Jul 29, 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.

4 participants