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 #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 #7429

jcouv opened this issue Aug 8, 2023 · 0 comments
Assignees
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant