966d9864d0
* Anonymous types of rest variable declarations need instantiation * Add regression test * Accept new baselines * Accept new API baselines
15 lines
239 B
TypeScript
15 lines
239 B
TypeScript
// @strict: true
|
|
|
|
// Repro from #33823
|
|
|
|
interface TestGeneric<TG> {
|
|
f: string
|
|
g: TG
|
|
}
|
|
|
|
const removeF = <TX>({ f, ...rest }: TestGeneric<TX>) => {
|
|
return rest
|
|
}
|
|
|
|
const result: number = removeF<number>({ f: '', g: 3 }).g
|