Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Shadowed variable declarations get marked as unused. #136
I understand that in this not too realistic but still possible scenario the first $foo is used as the collection in the for? (that's what all language implementations seem to think as well)
changes prepared should fix this issue and #140. I'll prepare more comprehensive suite of tests for those cases later. I've only fixed it for now for "for" and "let" bindings. If you can please try to find any additional scenarios with sliding/tumbling windows, group by, etc that would still require a fix and raise them as separate issue.