jashkenas/coffee-script — Issue #2128: prototype shortcut and 'do'
Author: jwronsky
Created: 2012-02-19 20:13:29+00:00
State: open

Again, this produes "unexpected '{'"(!) error on line 1 (Foo::bar: do ->):

```coffee-script
Foo::bar: do ->
return ->
return
```

this code should rather compile to something like this (I think):

```javascript
Foo.prototype.bar = (function() {
return function () {
}
}())
```