satyr/coco — Issue #111: Redefinition of function variable
Author: L0CKnL0aD7
Created: 2012-02-05 13:13:00+00:00
State: open

**Coco**:
`
->
name = ''
->
if name == ''
name = 'John'
`

**JavaScript**:
`
(function(){
var name;
name = '';
return function(){
var name; // I don't want this line!
if (name == '') {
return name = 'John';
}
};
});
`

**CoffeeScript** compiles this *correctly*.
Is this a bug or do I define this in a different way for **Coco**?