jashkenas/coffee-script — Issue #1815: @-sign in object literal compiles into invalid Javascript
Author: epeli
Created: 2011-10-31 14:05:02+00:00
State: open

I was bit surprised to find out today that this compiles:

```coffee
foo = @bar: 1
```

The output is

```javascript
var foo;
foo = {
this.bar: 1
};
```

Which is invalid Javascript.

I think that CoffeeScript compiler should throw an error when trying to compile this.