You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, thank you for finding the issued and adding an example to reproduce it!
The generator for for-loops only calls self.locals.push() if it is used with for … in … if …, but the method should always be called, because the loop body is a new scope. I haven't looked into it, but I wager that if-else-blocks and match-with-blocks have the same problem.
Only happens when shadowing the argument in a block and a for loop is present. More details in the repro comments.
This can be easily avoided by renaming either the parameter or the assigned variable, but this error was very confusing when I first encountered it.
Repro:
The text was updated successfully, but these errors were encountered: