jashkenas/coffee-script — Issue #2035: Unexpected compile for paren-free method chaining
Author: rpflorence
Created: 2012-01-13 05:30:15+00:00
State: open

```coffeescript
request
foo: 'bar'
.then doStuff

request 'foo'
.then doStuff
```

compiles to

```javascript
request({
foo: 'bar'
}).then(doStuff);

request('foo'.then(doStuff));
```

But I'd expect example #2 to be

```javascript
request('foo').then(doStuff));
```

Is my assumption wrong?