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