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

review: fix: search in previous cases for variable declarations #4697

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

SirYwell
Copy link
Collaborator

The naive approach for searching variable declarations only considered siblings and parents, which is not enough for switch statements. There, we need to look through all preceding cases as well.

Fixes #4696

Co-authored-by: I-Al-Istannen <i-al-istannen@users.noreply.github.com>
@SirYwell SirYwell changed the title wip: fix: search in previous cases for variable declarations review: fix: search in previous cases for variable declarations Apr 20, 2022
@monperrus monperrus merged commit 1ab589f into INRIA:master Apr 22, 2022
@monperrus
Copy link
Collaborator

thanks a lot @SirYwell

@SirYwell SirYwell deleted the fix/gh-4696 branch April 22, 2022 08:12
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.

[Bug] The scope of variable in switch blocs is not properly parsed
2 participants