We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a278d commit ee59ceeCopy full SHA for ee59cee
tests/cases/conformance/types/conditional/conditionalTypes2.ts
@@ -190,3 +190,9 @@ type ProductComplementComplement = {
190
};
191
type PCCA = ProductComplementComplement['a'];
192
type PCCB = ProductComplementComplement['b'];
193
+
194
+// Repro from #31326
195
196
+type Hmm<T, U extends T> = U extends T ? { [K in keyof U]: number } : never;
197
+type What = Hmm<{}, { a: string }>
198
+const w: What = { a: 4 };
0 commit comments