* New IntersectionState.ExcessCheck flag to ensure no infinite recursion * Add regression test
16 lines
243 B
TypeScript
16 lines
243 B
TypeScript
// @strict: true
|
|
|
|
// Repro from #35804
|
|
|
|
interface ITreeItem {
|
|
Parent?: this;
|
|
}
|
|
|
|
type NodeWithId = ITreeItem & { Id?: number };
|
|
|
|
function getMaxId(items: NodeWithId[]) {
|
|
}
|
|
|
|
const nodes = [] as ITreeItem[];
|
|
getMaxId(nodes);
|