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

9 lines
150 B
TypeScript

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