// @strict: true // Repro from #33823 interface TestGeneric { f: string g: TG } const removeF = ({ f, ...rest }: TestGeneric) => { return rest } const result: number = removeF({ f: '', g: 3 }).g