//// [contextualSignatureInstantiation1.ts] declare function map(f: (x: S) => T): (a: S[]) => T[]; var e = (x: string, y?: K) => x.length; var r99 = map(e); // should be {}[] for S since a generic lambda is not inferentially typed declare function map2(f: (x: S) => T): (a: S[]) => T[]; var e2 = (x: string, y?: K) => x.length; var r100 = map2(e2); // type arg inference should fail for S since a generic lambda is not inferentially typed. Falls back to { length: number } //// [contextualSignatureInstantiation1.js] var e = function (x, y) { return x.length; }; var r99 = map(e); // should be {}[] for S since a generic lambda is not inferentially typed var e2 = function (x, y) { return x.length; }; var r100 = map2(e2); // type arg inference should fail for S since a generic lambda is not inferentially typed. Falls back to { length: number }