Skip to content

[Errors] error recovery with incorrect lambda syntax #111

@mhegazy

Description

@mhegazy
foo((1)=>{return 0;}); 

Expected:

!!! ',' expected.

Actual:

!!! '=>' not preceded by parameter list.!!! ':' expected.!!! ',' expected.!!! Declaration or statement expected.!!! Declaration or statement expected.!!! Cannot find name 'foo'.

var x2 = (a:number) :void {};

Expected:

'=>' expected.

Actual:

!!! ')' expected.!!! ',' expected.!!! Variable declaration expected.!!! Variable declaration expected.!!! Cannot find name 'a'.

var x3 = (a:number) {};

Expected:

'=>' expected.

Actual:

!!! ')' expected.!!! ',' expected.!!! Variable declaration expected.!!! Cannot find name 'a'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions