Add regression test

This commit is contained in:
Anders Hejlsberg 2017-01-16 12:18:15 -08:00
parent 919e682e3f
commit f7d8e3befc

View file

@ -501,3 +501,7 @@ function updateIds2<T extends { [x: string]: string }, K extends keyof T>(
var x = obj[key];
stringMap[x]; // Should be OK.
}
// Repro from #13514
declare function head<T extends Array<any>>(list: T): T[0];