Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected parse error #1818

Closed
zah opened this issue Nov 3, 2011 · 1 comment
Closed

Unexpected parse error #1818

zah opened this issue Nov 3, 2011 · 1 comment

Comments

@zah
Copy link

zah commented Nov 3, 2011

Consider this minimalistic example:

obj = 
  field: _.map list, (item) ->
    item

It results in Parse error on line 2: Unexpected ','

To work around the issue, one has to rewrite the code like this:

obj = 
  field: _.map(list, (item) ->
    item)

...which works, but arguably it's inconsistent with the syntax of the language elsewhere.

@michaelficarra
Copy link
Collaborator

duplicate of #1111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants