mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 09:03:37 +03:00
36 lines
616 B
JavaScript
36 lines
616 B
JavaScript
var tmp = "computedName1", tmp1 = "computedName2", tmp2 = "computedName3", tmp3 = "computedname4", tmp4 = "computedname5", tmp5 = "computedname6";
|
|
// @target:es6
|
|
class D {
|
|
foo() {
|
|
}
|
|
[tmp]() {
|
|
}
|
|
[tmp1](a) {
|
|
}
|
|
[tmp2](a) {
|
|
return 1;
|
|
}
|
|
bar() {
|
|
return this._bar;
|
|
}
|
|
baz(a, x) {
|
|
return "HELLO";
|
|
}
|
|
static [tmp3]() {
|
|
}
|
|
static [tmp4](a) {
|
|
}
|
|
static [tmp5](a) {
|
|
return true;
|
|
}
|
|
static staticMethod() {
|
|
var x = 1 + 2;
|
|
return x;
|
|
}
|
|
static foo(a) {
|
|
}
|
|
static bar(a) {
|
|
return 1;
|
|
}
|
|
}
|