swc/crates/swc_ecma_parser/tests/tsc/symbolProperty30.ts
2022-02-04 17:08:38 +09:00

7 lines
126 B
TypeScript

//@target: ES6
class C1 {
[Symbol.toStringTag]() {
return { x: "" };
}
[s: symbol]: () => { x: number };
}