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 breaks class name resolving in static properties #40

Closed
breezewish opened this issue Jul 24, 2016 · 2 comments
Closed

decorator breaks class name resolving in static properties #40

breezewish opened this issue Jul 24, 2016 · 2 comments

Comments

@breezewish
Copy link

breezewish commented Jul 24, 2016

this works:

class MyClass {
    static MY_CONSTANT = 'foo';
    static MY_ANOTHER_CONSTANT = {
        [MyClass.MY_CONSTANT]: 'bar',
    };
}

but it won't work after enabling transform-decorators-legacy: Cannot read property 'MY_CONSTANT' of undefined.

@loganfsmyth
Copy link
Owner

Yup, this is a dup of #17 Haven't had time to fix it yet, but it's a known issue.

@breezewish
Copy link
Author

Oh. Thanks, haven't noticed that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants