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

[Errors] error recovery with incorrect lambda syntax #111

Closed
mhegazy opened this issue Jul 17, 2014 · 2 comments
Closed

[Errors] error recovery with incorrect lambda syntax #111

mhegazy opened this issue Jul 17, 2014 · 2 comments
Labels
Bug A bug in TypeScript

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

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'.

@mhegazy mhegazy added this to the TypeScript 1.2 milestone Jul 17, 2014
@DanielRosenwasser
Copy link
Member

The examples for x2 and x3 have been fixed in #203.

@sophiajt sophiajt modified the milestones: Community, TypeScript 1.3 Sep 8, 2014
@DanielRosenwasser
Copy link
Member

The first case seems fixed now too.

@mhegazy mhegazy modified the milestones: TypeScript 1.5, Community Apr 20, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants