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

Fix extraction inside anonymous function #66158

Merged

Conversation

ryzngard
Copy link
Contributor

Previously if you tried to extract a local function inside an anonymous
function it would pull it out of the function. This is not the intended
behavior, for most cases, and wasn't handled the same way for local
functions. This gets the behavior inside anonymous functions to match
that of local functions.

Fixes #65222

Previously if you tried to extract a local function inside an anonymous
function it would pull it out of the function. This is not the intended
behavior, for most cases, and wasn't handled the same way for local
functions. This gets the behavior inside anonymous functions to match
that of local functions.

Fixes dotnet#65222
@ryzngard ryzngard requested a review from a team as a code owner December 30, 2022 00:14
@ryzngard ryzngard requested a review from allisonchou December 30, 2022 00:14
@ryzngard ryzngard enabled auto-merge (squash) February 2, 2023 23:14
@ryzngard ryzngard merged commit 894751f into dotnet:main Mar 1, 2023
@ghost ghost added this to the Next milestone Mar 1, 2023
RikkiGibson added a commit that referenced this pull request Mar 1, 2023
@RikkiGibson RikkiGibson modified the milestones: Next, 17.6 P2 Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract Local Function In Lambda Produces Wrong Function Location
3 participants