-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[es6] "Duplicate class method" when two methods' names are got from an object #2350
Labels
Comments
This is a good one, thanks! |
Thanks for the report! |
I get the same warning using functions as methods' name. /*jshint esnext: true */
class A {
[Symbol("a")]() {}
[Symbol("b")]() {}
}
When using arrays /*jshint esnext: true */
const a = [ 1, 2 ];
class D {
[a[0]]() {}
[a[1]]() {}
}
When using template strings /*jshint esnext: true */
class D {
[`a`]() {}
[`b`]() {}
}
|
Expect the fix for this in the next release of JSHint (version > 2.7.0). |
jugglinmike
pushed a commit
to jugglinmike/jshint
that referenced
this issue
Jun 3, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this warning:
Duplicate class method '.'.
The text was updated successfully, but these errors were encountered: