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

Class 静态方法不支持使用 ElementAccessExpression 访问 #99

Closed
meixg opened this issue Nov 28, 2019 · 1 comment
Closed

Class 静态方法不支持使用 ElementAccessExpression 访问 #99

meixg opened this issue Nov 28, 2019 · 1 comment
Assignees
Labels

Comments

@meixg
Copy link
Member

meixg commented Nov 28, 2019

class XX {
    static aaa() {

    }
    static bbb() {

    }
    static ccc = '123'
}
XX['ccc']; // error
XX['aaa'](); // error

enum key {
    aaa = 'aaa',
    bbb = 'bbb',
    ccc = 'ccc'
}
const nnn = key.aaa;
const mmm = key.ccc;
let a = XX[nnn](); // error
let b = XX[mmm]; // error
@meixg meixg self-assigned this Nov 28, 2019
@meixg meixg closed this as completed in fabf6fe Nov 28, 2019
cxtom pushed a commit that referenced this issue Nov 28, 2019
## [0.19.3](v0.19.2...v0.19.3) (2019-11-28)

### Bug Fixes

* [#99](#99) ([fabf6fe](fabf6fe))
@cxtom
Copy link
Collaborator

cxtom commented Nov 28, 2019

🎉 This issue has been resolved in version 0.19.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@cxtom cxtom added the released label Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants