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

Possibly undefined variable _y when iterating through hashmap #109

Open
Tapawingo opened this issue Dec 3, 2021 · 1 comment
Open

Possibly undefined variable _y when iterating through hashmap #109

Tapawingo opened this issue Dec 3, 2021 · 1 comment

Comments

@Tapawingo
Copy link

When iterating through a HashMap with forEach, _x contains the key of the current element and _y contains the corresponding value.
https://community.bistudio.com/wiki/HashMap#Iterating_through_a_HashMap.

Would it be possible to add it in the next patch?

@SkaceKamen
Copy link
Owner

Thanks for reporting that, I'll probably add it in future, in the meanwhile you can use "sqflint.ignoredVariables": ["_y"]

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