TypeScript/tests/cases/compiler/cyclicGenericTypeInstantiation.ts

21 lines
288 B
TypeScript
Raw Normal View History

2015-05-31 03:09:13 +02:00
function foo<T>() {
var z = foo<typeof y>();
var y: {
y2: typeof z
};
return y;
}
function bar<T>() {
var z = bar<typeof y>();
var y: {
y2: typeof z;
}
return y;
}
var a = foo<number>();
var b = bar<number>();
a = b;