mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 16:39:46 -05:00
Add regression test
This commit is contained in:
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]>
|
||||
Reference in New Issue
Block a user