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 dc42feb commit 83276ceCopy full SHA for 83276ce
tests/cases/conformance/types/conditional/conditionalTypes1.ts
@@ -219,6 +219,10 @@ function f22<T>(x: T extends (infer U)[] ? U[] : never) {
219
let e = x[0]; // {}
220
}
221
222
+function f23<T extends string[]>(x: T extends (infer U)[] ? U[] : never) {
223
+ let e = x[0]; // string
224
+}
225
+
226
// Repros from #21664
227
228
type Eq<T, U> = T extends U ? U extends T ? true : false : false;
0 commit comments