15 lines
229 B
TypeScript
15 lines
229 B
TypeScript
//// [computedPropertyNames21_ES6.ts]
|
|
class C {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[this.bar()]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames21_ES6.js]
|
|
class C {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[this.bar()]() { }
|
|
}
|