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 CALL_START #2149

Closed
mgutz opened this issue Feb 27, 2012 · 5 comments
Closed

unexpected CALL_START #2149

mgutz opened this issue Feb 27, 2012 · 5 comments

Comments

@mgutz
Copy link

mgutz commented Feb 27, 2012

Unsure if this a real error or if I'm misusing object notation. Trying to avoid using {} around attributes in a template library.

# ok
t.a class:"btn", "<foo/>"

# unexpected CALL_START
t.a class:"btn", raw("<foo/>")
@TrevorBurnham
Copy link
Collaborator

Definitely a weird bug. Simplified test case:

a(b:c, d)    # works
a(b:c, f(d)) # fails

Putting explicit curly braces or parens around b:c fixes it. Pinging @michaelficarra... is this a dupe?

@mgutz
Copy link
Author

mgutz commented Feb 27, 2012

same as #1615

@mgutz mgutz closed this as completed Feb 27, 2012
@TrevorBurnham
Copy link
Collaborator

Ah, thanks for saving Michael the trouble!

@ali01
Copy link

ali01 commented Dec 10, 2012

Similarly, it looks like the following:

class Foo
   @bar = =>
     new @ aoe : 3

Foo.bar()

fails to parse (with Unexpected 'CALL_START'). Whereas the same code with parens around the object after new, succeeds:

class Foo
   @bar = =>
     new @(aoe : 3)

Foo.bar()

@vendethiel
Copy link
Collaborator

As said before #1111, #1615

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

4 participants