17 lines
267 B
TypeScript
17 lines
267 B
TypeScript
//// [computedPropertyNames23_ES6.ts]
|
|
class C {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[
|
|
{ [this.bar()]: 1 }[0]
|
|
]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames23_ES6.js]
|
|
class C {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[{ [this.bar()]: 1 }[0]]() { }
|
|
}
|