TypeScript/tests/baselines/reference/nestedGenericConditionalTypeWithGenericImportType.types
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

14 lines
271 B
Plaintext

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