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

Bug with :: and if #2517

Closed
alekseykulikov opened this issue Aug 28, 2012 · 2 comments
Closed

Bug with :: and if #2517

alekseykulikov opened this issue Aug 28, 2012 · 2 comments

Comments

@alekseykulikov
Copy link

Fragment

klass = klass:: if type is 'class'

Compile to:

var klass;
klass = klass.prototype["if"](type === 'class');

klass.prototype instead of klass:: works correct.

@vendethiel
Copy link
Collaborator

Looks like a bug, but you can use (klass::)

@michaelficarra
Copy link
Collaborator

Duplicate of #1477. See also #1768, #1601, #1824.

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

3 participants