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

9 lines
150 B
TypeScript
Raw Normal View History

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