Skip to content

Allow export default abstract class. Related to issue 3792.#14657

Merged
sandersn merged 1 commit intomicrosoft:masterfrom
erikmcc:master
Mar 31, 2017
Merged

Allow export default abstract class. Related to issue 3792.#14657
sandersn merged 1 commit intomicrosoft:masterfrom
erikmcc:master

Conversation

@erikmcc
Copy link
Contributor

@erikmcc erikmcc commented Mar 14, 2017

Fixes (part of) #3792

@msftclas
Copy link

@erikmcc,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@msftclas
Copy link

@erikmcc, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot



==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts (3 errors) ====
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts (2 errors) ====
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow nice test name @aozgaa

@DanielRosenwasser
Copy link
Member

👍 LGTM

@sandersn sandersn merged commit a62869c into microsoft:master Mar 31, 2017
@aluanhaddad
Copy link
Contributor

Awesome!

It is a shame this doesn't support interfaces. I tend to abide by the rule that says if you have only one export, it should be the default, and I apply this even to interfaces.

Regardless, I'm really glad to see this. Thank you!

@erikmcc
Copy link
Contributor Author

erikmcc commented Mar 31, 2017 via email

@BehindTheMath
Copy link

@erikmcc Does it make sense that I'm still getting an error if I use the export = syntax (for example, export = abstract class A)?

@mhegazy
Copy link
Contributor

mhegazy commented Oct 9, 2017

We are not planning on changing the export = at the time being.

@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants