swc/crates/swc_ecma_parser/tests/tsc/computedPropertyNames24_ES6.ts

11 lines
237 B
TypeScript
Raw Normal View History

// @target: es6
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()]() { }
}