TypeScript/tests/cases/compiler/recursiveExcessPropertyChecks.ts

16 lines
243 B
TypeScript
Raw Normal View History

// @strict: true
// Repro from #35804
interface ITreeItem {
Parent?: this;
}
type NodeWithId = ITreeItem & { Id?: number };
function getMaxId(items: NodeWithId[]) {
}
const nodes = [] as ITreeItem[];
getMaxId(nodes);