Skip to content

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

Merged
Nathan Shively-Sanders (sandersn) merged 1 commit into
microsoft:masterfrom
erikmcc:master
Mar 31, 2017
Merged

Nathan Shively-Sanders (sandersn) merged 1 commit into
microsoft:masterfrom
erikmcc:master

Conversation

@erikmcc

@erikmcc Erik McClenney (erikmcc) commented Mar 14, 2017 •

Copy link
Copy Markdown
Contributor

Fixes (part of) #3792

@msftclas

@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

Erik McClenney (@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
Copy Markdown
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 Arthur Ozga (@aozgaa)

@DanielRosenwasser

Copy link
Copy Markdown
Member

👍 LGTM

@sandersn
Nathan Shively-Sanders (sandersn) merged commit a62869c into microsoft:master Mar 31, 2017
@aluanhaddad

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@BehindTheMath

Copy link
Copy Markdown

Erik McClenney (@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
Copy Markdown
Contributor

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

@microsoft 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