halgari/clojure-py — Issue #29: recur + with combination is broken
Author: halgari
Created: 2012-02-23 18:58:38+00:00
State: open

The compiler produces incorrect results when compiling this code:

```
(loop [x 0]
(let [x x]
(if (< x 10)
(recur (inc x)))))
```

The compiler is basically clobbering the local variables and putting the result of (inc x) into the slot variable for the ```let``` instead of the variable for ```loop```. This is why doseq is currently broken.