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

9 lines
150 B
TypeScript
Raw Normal View History

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