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

checker: disallow const name in for loop #22108

Merged
merged 4 commits into from
Aug 23, 2024

Conversation

Delta456
Copy link
Member

Fixes #22072

@Delta456 Delta456 marked this pull request as ready for review August 23, 2024 20:46
Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@spytheman spytheman merged commit 4b799fd into vlang:master Aug 23, 2024
73 checks passed
@Delta456 Delta456 deleted the const_for_loop_name_dup branch August 24, 2024 07:55
@medvednikov
Copy link
Member

I'm not sure why there needs to be separate logic just in the for loop. Variable creation logic with all the checks for duplicity should be defined once.

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.

const name shadowing
3 participants