TypeScript/tests/baselines/reference/recursiveExcessPropertyChecks.js
2021-05-06 13:12:36 -07:00

24 lines
399 B
TypeScript

//// [recursiveExcessPropertyChecks.ts]
// Repro from #35804
interface ITreeItem {
Parent?: this;
}
type NodeWithId = ITreeItem & { Id?: number };
function getMaxId(items: NodeWithId[]) {
}
const nodes = [] as ITreeItem[];
getMaxId(nodes);
//// [recursiveExcessPropertyChecks.js]
"use strict";
// Repro from #35804
function getMaxId(items) {
}
var nodes = [];
getMaxId(nodes);