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

16 lines
245 B
TypeScript

// @target: es5
class Base {
bar() {
return 0;
}
}
class C extends Base {
foo() {
() => {
var obj = {
[super.bar()]() { } // needs capture
};
}
return 0;
}
}