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

Produce errors for bad modifiers in .js files #9196

Closed
ghost opened this issue Jun 15, 2016 · 1 comment
Closed

Produce errors for bad modifiers in .js files #9196

ghost opened this issue Jun 15, 2016 · 1 comment
Labels
Bug A bug in TypeScript
Milestone

Comments

@ghost
Copy link

ghost commented Jun 15, 2016

We should produce an error for this JavaScript code:

function f() {
    export const x = 0;
}

Probably the same "Modifiers cannot appear here." error as for the same code in a .ts file.

@ghost ghost self-assigned this Jun 15, 2016
@mhegazy mhegazy added this to the TypeScript 2.1 milestone Jun 15, 2016
@mhegazy mhegazy added the Bug A bug in TypeScript label Jun 15, 2016
@mhegazy mhegazy modified the milestones: Future, TypeScript 2.1 Sep 29, 2016
@RyanCavanaugh
Copy link
Member

Track at #29213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants