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