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 d093d6a commit ec02ccdCopy full SHA for ec02ccd
tests/cases/conformance/types/conditional/conditionalTypes2.ts
@@ -121,3 +121,18 @@ function foo<T>(value: T) {
121
toString2(value);
122
}
123
124
+
125
+// Repro from #23052
126
127
+type A<T, V, E> =
128
+ T extends object
129
+ ? { [Q in { [P in keyof T]: T[P] extends V ? P : P; }[keyof T]]: A<T[Q], V, E>; }
130
+ : T extends V ? T : never;
131
132
+type B<T, V> =
133
134
+ ? { [Q in { [P in keyof T]: T[P] extends V ? P : P; }[keyof T]]: B<T[Q], V>; }
135
136
137
+type C<T, V, E> =
138
+ { [Q in { [P in keyof T]: T[P] extends V ? P : P; }[keyof T]]: C<T[Q], V, E>; };
0 commit comments