jashkenas/coffee-script — Issue #1809: possible bug parsing round-braced object literals inside classes
Author: humanchimp
Created: 2011-10-27 23:47:17+00:00
State: open

Maybe there is a reason for this, but this caught me be surprise:

```coffeescript
notBug = (works: 'fine')

class
bug = (astonishing: 'behavior')
```

```javascript
var notBug;
notBug = {
works: 'fine'
};
(function() {
var bug;
function _Class() {}
bug = (_Class.prototype.astonishing = 'behavior');
return _Class;
})();
```

It is assigning a property to the prototype instead of creating a new object literal