40 lines
529 B
Text
40 lines
529 B
Text
=== tests/cases/compiler/nestedInfinitelyExpandedRecursiveTypes.ts ===
|
|
interface F<T> {
|
|
>F : F<T>
|
|
>T : T
|
|
|
|
t: G<F<() => T>>;
|
|
>t : G<F<() => T>>
|
|
>G : G<U>
|
|
>F : F<T>
|
|
>T : T
|
|
}
|
|
interface G<U> {
|
|
>G : G<U>
|
|
>U : U
|
|
|
|
t: G<G<() => U>>;
|
|
>t : G<G<() => U>>
|
|
>G : G<U>
|
|
>G : G<U>
|
|
>U : U
|
|
}
|
|
|
|
var f: F<string>;
|
|
>f : F<string>
|
|
>F : F<T>
|
|
|
|
var g: G<string>;
|
|
>g : G<string>
|
|
>G : G<U>
|
|
|
|
f = g;
|
|
>f = g : G<string>
|
|
>f : F<string>
|
|
>g : G<string>
|
|
|
|
g = f;
|
|
>g = f : F<string>
|
|
>g : G<string>
|
|
>f : F<string>
|
|
|