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

Bad error message for default export in namespace #11092

Closed
DanielRosenwasser opened this issue Sep 23, 2016 · 0 comments
Closed

Bad error message for default export in namespace #11092

DanielRosenwasser opened this issue Sep 23, 2016 · 0 comments
Labels
Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@DanielRosenwasser
Copy link
Member

namespace Foo {
  export default foo;
}

Actual: "An export assignment cannot be used in a namespace."
Expected: "A default export can only be used in an ECMAScript-style module."

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging labels Sep 23, 2016
@mhegazy mhegazy added this to the Community milestone Sep 23, 2016
@mhegazy mhegazy added the Help Wanted You can do this label Sep 23, 2016
@mhegazy mhegazy modified the milestones: TypeScript 2.2, Community Dec 22, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Dec 22, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

2 participants