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

Can't export abstract class by default #11778

Closed
dempfi opened this issue Oct 21, 2016 · 1 comment
Closed

Can't export abstract class by default #11778

dempfi opened this issue Oct 21, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@dempfi
Copy link

dempfi commented Oct 21, 2016

TypeScript Version: 2.0.3

Code

export default abstract class SomeClass {
}

Expected behavior: The code above should result in export by default of abstract class SomeClass.

Actual behavior: Compiler throws an error error TS1005: ';' expected.. Export in new line works fine:

abstract class SomeClass {
}
export default SomeClass
@yortus
Copy link
Contributor

yortus commented Oct 21, 2016

Duplicate of #3792 and others. Please be courteous to the team and search for existing issues first. Note that comment was for another duplicate of this same issue opened just a day ago.

@dempfi dempfi closed this as completed Oct 21, 2016
@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Oct 24, 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
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants