jashkenas/coffee-script — Issue #2072: unwarranted overwriting of a variable with a double for of loop
Author: superjoe30
Created: 2012-01-27 09:03:17+00:00
State: open

```coffee
for _, i of foo
for _, j of bar
console.log "#{i}, #{j}"
```
In coffee-script, this looks fine. But when this gets compiled to javascript, it's broken:

```javascript
for _, i of foo
for _, j of bar
console.log "#{i}, #{j}"
(function() {
var i, j, _;

for (_ in foo) {
i = foo[_];
for (_ in bar) {
j = bar[_];
console.log("" + i + ", " + j);
}
}

}).call(this);