Add regression test

This commit is contained in:
Anders Hejlsberg 2017-01-22 11:53:18 -08:00
parent 5b9004e1bc
commit 80e5f2f314

View file

@ -505,3 +505,15 @@ function updateIds2<T extends { [x: string]: string }, K extends keyof T>(
// Repro from #13514
declare function head<T extends Array<any>>(list: T): T[0];
// Repro from #13604
class A<T> {
props: T & { foo: string };
}
class B extends A<{ x: number}> {
f(p: this["props"]) {
p.x;
}
}