Possible bug or unintended behavior:
/#try link
Expected Behavior
Compile same as:
gen = ->
yield k: 'v'
# or
gen = ->
yield {
k: 'v'
}
Current Behavior
Gives compile error:
[stdin]:3:1: error: unexpected indentation
k: 'v'
^^^^^^
Context
I was expecting to use yield same as functions and statements like return or throw. This type of syntax is quite handy when returning multi key objects.
Environment
- CoffeeScript version: 2.3.0
- Node.js version: 8.4.0