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

6 lines
129 B
TypeScript

//@target: ES6
//@declaration: true
class C {
get [Symbol.toPrimitive]() { return ""; }
set [Symbol.toStringTag](x) { }
}