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

MISSING_VAR incorrect in array loop #720

Open
wporter82 opened this issue Apr 20, 2023 · 1 comment
Open

MISSING_VAR incorrect in array loop #720

wporter82 opened this issue Apr 20, 2023 · 1 comment

Comments

@wporter82
Copy link

When looping over an array of structs, setting any value of the local scoped struct will incorrectly be flagged as not being declared with a var statement

image

A workaround would be to add a new variable that we work with instead:

image

But this just adds complexity and possibly introduces potential bugs further down the line.

@KamasamaK
Copy link
Collaborator

Another workaround is to reference it as local.xyz each time it is used.

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

No branches or pull requests

2 participants