Araq/Nimrod — Issue #100: Closure bug
Author: dom96
Created: 2012-02-19 10:00:06+00:00
State: open

The nimrod compiler generates incorrect C code for the following code:

```nimrod
var funcs: seq[proc (): int]
for i in 0..10:
funcs.add((proc (): int = return i * i))

echo(funcs[3]())
```