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

Add test for shadowing named return value #101

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Add test for shadowing named return value #101

merged 1 commit into from
Apr 15, 2024

Conversation

abhinav
Copy link
Contributor

@abhinav abhinav commented Apr 15, 2024

We go to some lengths to make sure that
we're tracking the correct named return value in assignments,
but we don't have a test for it.

This adds a test that verifies that if a named return value is shadowed,
the shadowed value is not wrapped if it's not otherwise in scope for
wrapping.

We go to some lengths to make sure that
we're tracking the correct named return value in assignments,
but we don't have a test for it.

This adds a test that verifies that if a named return value is shadowed,
the shadowed value is not wrapped if it's not otherwise in scope for
wrapping.
@abhinav abhinav mentioned this pull request Apr 15, 2024
@abhinav abhinav merged commit 0ca1e2f into main Apr 15, 2024
13 checks passed
@abhinav abhinav deleted the shadow-test branch April 15, 2024 04:50
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.

None yet

2 participants