pufuwozu/roy — Issue #61: Unnable to invoke function called 'then'
Author: kasperlanger
Created: 2011-12-06 17:07:03+00:00
State: open

Is there a way to invoke methods called ```then``` like in the following example

```
($.when "foo").then(\x ->
console.log x
)
```

I was hoping it would compile to something like

```
$.when("foo").then(function(x){console.log(x);});
````

but I get the following error

```
Error: Parse error on line 2: Unexpected 'THEN'
```