Skip to content

[CSClosure] Fix per-element variable finder to correctly handle retur… #58834

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

Merged
merged 1 commit into from
May 19, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 11, 2022

…n statements

Type finder is still allowed to walk into closures to find any
referenced variables, but it should bring external result type
into scope only if a particular return belongs to the same
closure as the element.

@xedin xedin requested a review from hborla May 11, 2022 18:20
@xedin
Copy link
Contributor Author

xedin commented May 11, 2022

@swift-ci please test

…n statements

Type finder is still allowed to walk into closures to find any
referenced variables, but it should bring external result type
into scope only if a particular `return` belongs to the same
closure as the element.
@xedin xedin force-pushed the var-finder-return-handling branch from 41ef4d0 to ddd7e49 Compare May 18, 2022 20:53
@xedin
Copy link
Contributor Author

xedin commented May 18, 2022

@swift-ci please test

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

Successfully merging this pull request may close these issues.

2 participants