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

Decorator on class expression #15975

Closed
BurtHarris opened this issue May 21, 2017 · 2 comments
Closed

Decorator on class expression #15975

BurtHarris opened this issue May 21, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@BurtHarris
Copy link

I hit an snag porting a unit test from Babel to TypeScript. I'm not following the decorator spec closely, so it might be as-intended, but I thought I'd ask.

TypeScript Version: 2.3.2

import mixin from '../../lib/mixin';

function applyMixins(...mixins) {
  return @mixin(...mixins)
    class Foo {
      getStuff3() {
        return 'stuff3';
      }
    };
}

Expected behavior:
Compiles as under Babel

Actual behavior:
This fails with an Expression expected error

@aluanhaddad
Copy link
Contributor

This is a duplicate of #7342.

@BurtHarris
Copy link
Author

Thanks

@mhegazy mhegazy added the Duplicate An existing issue was already created label May 22, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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