KEMBAR78
prototype shorthand (A::) sticks to 'then' and 'when' · Issue #1477 · jashkenas/coffeescript · GitHub
Skip to content

prototype shorthand (A::) sticks to 'then' and 'when' #1477

@dbrans

Description

@dbrans
for k of A:: when k isnt constructor then 

compiles to

var k;
for (k in A.prototype.when(k !== constructor)) {}

and

if A:: then 2

produces a parse error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions