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

16 lines
245 B
TypeScript

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