jashkenas/coffee-script — Issue #1903: @func inside a class definition captures next line as argument
Author: ktusznio
Created: 2011-12-01 18:13:04+00:00
State: open

```coffeescript
class A extends B
@methodOnB a: b
myMethod: ->
```

Compiles to:

```javascript
A = (function() {

__extends(A, B);

function A() {
A.__super__.constructor.apply(this, arguments);
}

A.methodOnB({
a: b,
myMethod: function() {}
});

return A;

})();
```

where `myMethod` is passed as an argument to `methodOnB` rather than being declared as a function on `A`.