Add additional test

This commit is contained in:
Anders Hejlsberg 2019-08-16 07:45:02 -07:00
parent ac2f151412
commit c816cf2562

View File

@ -69,3 +69,12 @@ async function fun<T>(deepPromised: DeepPromised<T>) {
await fun(awaitedValue);
}
}
// Repro from #32752
type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
declare function baz<T>(dp: Deep<T>): T;
declare let xx: { a: string | undefined };
baz(xx);