mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Add additional test
This commit is contained in:
parent
ac2f151412
commit
c816cf2562
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user