mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-16 15:51:35 -05:00
Add another test
This commit is contained in:
committed by
Mohamed Hegazy
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;
|
||||
|
||||
Reference in New Issue
Block a user