24 lines
535 B
TypeScript
24 lines
535 B
TypeScript
//// [computedPropertyNames24_ES6.ts]
|
|
class Base {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
}
|
|
class C extends Base {
|
|
// Gets emitted as super, not _super, which is consistent with
|
|
// use of super in static properties initializers.
|
|
[super.bar()]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames24_ES6.js]
|
|
class Base {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
}
|
|
class C extends Base {
|
|
// Gets emitted as super, not _super, which is consistent with
|
|
// use of super in static properties initializers.
|
|
[super.bar()]() { }
|
|
}
|