satyr / coco

Unfancy CoffeeScript
http://satyr.github.com/coco/
MIT License
498 stars 48 forks source link

`var a; 1` doesn't work #227

Closed vendethiel closed 11 years ago

vendethiel commented 11 years ago

is that on purpose ? seems like it only occurs when using ; as a terminator. this works :

var a
a + 5
satyr commented 11 years ago

Because a declaration take an implicit block (just like e.g. try).

var a; bvar => a; b

vendethiel commented 11 years ago

Indeed, thanks