Add regression test
This commit is contained in:
parent
d80795cc17
commit
92f5f1dd9d
6
tests/cases/compiler/recursiveResolveTypeMembers.ts
Normal file
6
tests/cases/compiler/recursiveResolveTypeMembers.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Repro from #25291
|
||||
|
||||
type PromisedTuple<L extends any[], U = (...args: L) => void> =
|
||||
U extends (h: infer H, ...args: infer R) => [Promise<H>, ...PromisedTuple<R>] ? [] : []
|
||||
|
||||
type Promised = PromisedTuple<[1, 2, 3]>
|
Loading…
Reference in a new issue