Skip to content

Commit c816cf2

Browse files
committed
Add additional test
1 parent ac2f151 commit c816cf2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference.ts

+9
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,12 @@ async function fun<T>(deepPromised: DeepPromised<T>) {
6969
await fun(awaitedValue);
7070
}
7171
}
72+
73+
// Repro from #32752
74+
75+
type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
76+
77+
declare function baz<T>(dp: Deep<T>): T;
78+
declare let xx: { a: string | undefined };
79+
80+
baz(xx);

0 commit comments

Comments
 (0)