Add regression test

This commit is contained in:
Anders Hejlsberg 2018-06-29 17:16:23 -10:00
parent d80795cc17
commit 92f5f1dd9d

View 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]>