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

7 lines
128 B
TypeScript

// @target: es6
// @declaration: true
class C {
["" + ""]() { }
get ["" + ""]() { return 0; }
set ["" + ""](x) { }
}