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

export default abstract class doesn't work #9513

Closed
alex-kinokon opened this issue Jul 5, 2016 · 4 comments
Closed

export default abstract class doesn't work #9513

alex-kinokon opened this issue Jul 5, 2016 · 4 comments
Labels
Duplicate An existing issue was already created

Comments

@alex-kinokon
Copy link

TypeScript Version: 1.8.10

Code

export default abstract class Sample {
  // methods here.
}

Expected behavior:

"use strict";
var Sample = (function () {
    function Sample() {
    }
    return Sample;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = Sample;

Actual behavior:

[ts] Cannot find name 'abstract'.
[ts] ';' expected.    // at the word `class`

Combinations that work:

export abstract class Sample {}

abstract class Sample {}
export default Sample;
@kitsonk
Copy link
Contributor

kitsonk commented Jul 5, 2016

Two second search to find it is a duplicate of #3792

@alex-kinokon
Copy link
Author

@kitsonk Sorry. I couldn’t find it.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 5, 2016

"export default abstract" returns the original issue and about 5 other duplicates of it...

@mhegazy
Copy link
Contributor

mhegazy commented Jul 5, 2016

image

@mhegazy mhegazy closed this as completed Jul 5, 2016
@mhegazy mhegazy added the Duplicate An existing issue was already created label Jul 5, 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