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 lambda missing open curly #122

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

[Errors] error recovery with lambda missing open curly #122

mhegazy opened this issue Jul 17, 2014 · 2 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

class C {
        where(filter: Iterator<T, boolean>): Query<T> {
            return fromDoWhile(test =>
                var index = 0;
!!! '{' expected.
                return this.doWhile((item, i) => filter(item, i) ? test(item, index++) : true);
!!! Property 'doWhile' does not exist on value of type 'C'.
            });
        }
    }      

Expected: errors as above

Actual:

                var index = 0;
!!! Expression expected.
                return this.doWhile((item, i) => filter(item, i) ? test(item, index++) : true);
!!! Property 'doWhile' does not exist on value of type 'C'.
!!! Cannot find name 'test'.
            });
!!! Property or method expected.
!!! Property or method expected.
        }
!!! Declaration or statement expected.
    }
!!! Declaration or statement expected.
@mhegazy mhegazy added this to the TypeScript 1.2 milestone Jul 17, 2014
@DanielRosenwasser
Copy link
Member

I believe I fixed this in #28.

@mhegazy mhegazy modified the milestones: TypeScript 1.2, Community Aug 29, 2014
@DickvdBrink
Copy link
Contributor

@danquirk danquirk added the Fixed A PR has been merged for this issue label Mar 12, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.5, Community Mar 12, 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 Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

5 participants