TypeScript/tests/cases/compiler/nestedGenericConditionalTypeWithGenericImportType.ts
Andrew Branch b377e99958
Prevent infinite recursion resolving nested conditional types with import types in them (#32097)
* Prevent infinite recursion resolving conditional types

* Use push/popTypeResolution and issue error

* Add failing test

* Fix the actual problem

* Revert unnecessary changes
2019-08-01 08:37:43 -07:00

10 lines
205 B
TypeScript

// #31824
// @filename: name.ts
export type Name<T> = any;
// @filename: index.ts
type T<X> = any extends ((any extends any ? any : string) extends any ? import("./name").Name<X> : any)
? any
: any;