Skip to content

Empty function construct requires additional parentheses #81

Closed
@ghost

Description

Coco:

% coco -bpe 'equal @getClassOf(->), "Function", "Function object"' 
Error: Parse error on line 1: Unexpected ')CALL'

% coco -bpe 'equal @getClassOf((->)), "Function", "Function object"'
equal(this.getClassOf(function(){}), "Function", "Function object");

CoffeeScript:

% coffee -bpe 'equal @getClassOf(->), "Function", "Function object"'
equal(this.getClassOf(function() {}), "Function", "Function object");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions