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

9 lines
150 B
TypeScript

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