pufuwozu/roy — Issue #59: Can't compile do construct without bind statement
Author: kasperlanger
Created: 2011-12-05 21:04:47+00:00
State: open

Here's an example of what I'm trying to do

```
let deferred = {
return: \x -> $.when(x)
bind: \x f -> x.done(f)
}

let v = (do deferred
return "hello world"
)

(do deferred
val <- v
console.log val
)
```

I get the error ```TypeError: Cannot set property 'rest' of undefined``` in the second ```do```