mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Add another test
This commit is contained in:
parent
c0b96df417
commit
8f25748334
@ -219,6 +219,10 @@ function f22<T>(x: T extends (infer U)[] ? U[] : never) {
|
||||
let e = x[0]; // {}
|
||||
}
|
||||
|
||||
function f23<T extends string[]>(x: T extends (infer U)[] ? U[] : never) {
|
||||
let e = x[0]; // string
|
||||
}
|
||||
|
||||
// Repros from #21664
|
||||
|
||||
type Eq<T, U> = T extends U ? U extends T ? true : false : false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user