Skip to content

super and wrapped statement #1183

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

Closed
satyr opened this issue Mar 5, 2011 · 2 comments · Fixed by #2252
Closed

super and wrapped statement #1183

satyr opened this issue Mar 5, 2011 · 2 comments · Fixed by #2252

Comments

@satyr
Copy link
Collaborator

satyr commented Mar 5, 2011

$ coffee -bpe 'C::m = -> super'
C.prototype.m = function() {
  return C.__super__.m.apply(this, arguments);
};

$ coffee -bpe 'C::m = -> r = try super'
SyntaxError: cannot call super on an anonymous function.
@TrevorBurnham
Copy link
Collaborator

Since this bug is tagged for the 1.2 milestone, pinging @michaelficarra. Think you can tackle it?

@michaelficarra
Copy link
Collaborator

Yeah, I don't think it would be very hard. But finding time any time soon will be difficult. I have a lot on my plate, unfortunately, and have been limiting my github time to simply discussing code, not working on it.

maxtaco added a commit to maxtaco/coffee-script that referenced this issue Apr 11, 2012
@maxtaco maxtaco mentioned this issue Apr 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants