TypeScript/tests/cases/compiler/nestedInfinitelyExpandedRecursiveTypes.ts

11 lines
147 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface F<T> {
t: G<F<() => T>>;
}
interface G<U> {
t: G<G<() => U>>;
}
var f: F<string>;
var g: G<string>;
f = g;
g = f;