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

Revert "Scoped implicitly-typed lambda parameters (#64680)" #64986

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Oct 25, 2022

From discussion with Mads and Chuck, implicitly-typed lambda parameters should only receive a type during anonymous function conversion. With regards to ref and scoped, both should behave the same, they should not flow to the implicitly-typed lambda parameters.

The first commit reverts commit 5bf1a43 (ie PR #64680). The second commit adds the tests back plus a couple more.

Corresponding spec change: dotnet/csharplang#6595

Filed issue #64984 (conversion existence affects overload resolution)
Filed issue #64985 (lambda parameter symbol ref-kind incorrect)

Relates to test plan #59194

@jcouv jcouv self-assigned this Oct 25, 2022
@jcouv jcouv marked this pull request as ready for review October 26, 2022 00:21
@jcouv jcouv requested a review from a team as a code owner October 26, 2022 00:21
@jcouv jcouv requested a review from cston October 26, 2022 00:21
@jcouv
Copy link
Member Author

jcouv commented Oct 26, 2022

@AlekseyTs @RikkiGibson for second review. Thanks

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 2)

@jcouv jcouv merged commit c50d5e8 into dotnet:main Oct 27, 2022
@jcouv jcouv deleted the lambda-parameters branch October 27, 2022 05:58
@ghost ghost added this to the Next milestone Oct 27, 2022
@allisonchou allisonchou modified the milestones: Next, 17.5 P2 Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants