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

[Proposal]: Method group natural type improvements (VS 17.9, .NET 9) #7429

Open
1 of 4 tasks
jcouv opened this issue Aug 8, 2023 · 0 comments
Open
1 of 4 tasks

[Proposal]: Method group natural type improvements (VS 17.9, .NET 9) #7429

jcouv opened this issue Aug 8, 2023 · 0 comments
Assignees
Labels
Implemented Needs ECMA Spec This feature has been implemented in C#, but still needs to be merged into the ECMA specification Proposal champion Proposal
Milestone

Comments

@jcouv
Copy link
Member

jcouv commented Aug 8, 2023

Method group natural type improvements

  • Proposed
  • Prototype: Started
  • Implementation: Started
  • Specification: Not Started

Summary

The proposal is that the natural/weak type of a method group should be determined by looking scope-by-scope and pruning inapplicable candidates as soon as possible, instead of considering all scopes at once and letting those inapplicable candidates fail the determination process.

Motivation

The motivation for the scope-by-scope approach is to prepare a better foundation for the extension types work.
The motivation for the early pruning approach is to better align with the principle used in overload resolution.

Detailed design

See https://github.com/dotnet/csharplang/blob/main/proposals/method-group-natural-type-improvements.md

Design meetings

@jcouv jcouv added this to the Working Set milestone Aug 8, 2023
@jcouv jcouv self-assigned this Aug 8, 2023
@jcouv jcouv added the Implemented Needs ECMA Spec This feature has been implemented in C#, but still needs to be merged into the ECMA specification label Sep 4, 2024
@jcouv jcouv changed the title [Proposal]: Method group natural type improvements [Proposal]: Method group natural type improvements (VS 17.9, .NET 9) Sep 17, 2024
@jcouv jcouv modified the milestones: Working Set, 13.0 Sep 17, 2024
@jcouv jcouv added the Proposal label Sep 17, 2024
@dotnet dotnet locked and limited conversation to collaborators Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Implemented Needs ECMA Spec This feature has been implemented in C#, but still needs to be merged into the ECMA specification Proposal champion Proposal
Projects
None yet
Development

No branches or pull requests

1 participant