mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 17:15:11 +03:00
22 lines
321 B
JavaScript
22 lines
321 B
JavaScript
// @target: es6
|
|
class B {
|
|
"foo"() {
|
|
}
|
|
14() {
|
|
}
|
|
11() {
|
|
}
|
|
interface() {
|
|
}
|
|
constructor(){
|
|
this["hello"] = 10;
|
|
this[6] = "world";
|
|
this[10076] = "WORLD";
|
|
this[20] = "twenty";
|
|
}
|
|
}
|
|
B["hi"] = 10000;
|
|
B[22] = "twenty-two";
|
|
B[5] = "binary";
|
|
B[1693] = "octal";
|