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