b377e99958
* Prevent infinite recursion resolving conditional types * Use push/popTypeResolution and issue error * Add failing test * Fix the actual problem * Revert unnecessary changes
10 lines
205 B
TypeScript
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;
|