Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Errors] error recovery with illegal modifiers inside function bodies #123

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment
Closed
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

export function foo() {
       export var x = this;    
}

Expected:

!!! Modifiers cannot appear here.

Actual:

    export function foo() {
       export var x = this;
!!! Statement expected.
    }
!!! Declaration or statement expected.

See also:

tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock2.ts

tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock3.ts

tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock4.ts

@mhegazy mhegazy added this to the TypeScript 1.2 milestone Jul 17, 2014
@mhegazy mhegazy self-assigned this Jul 17, 2014
@mhegazy mhegazy modified the milestones: TypeScript 1.2, Community Aug 29, 2014
@mhegazy mhegazy removed their assignment Oct 9, 2014
@DanielRosenwasser
Copy link
Member

This appears to be fixed

@DanielRosenwasser DanielRosenwasser added the Fixed A PR has been merged for this issue label Apr 20, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.5, Community Apr 20, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants