TypeScript/tests/cases/compiler/declarationEmitInferedTypeAlias4.ts
Kanchalai Tanglertsampan a4864d086e Add tests
2016-09-16 09:15:46 -07:00

7 lines
123 B
TypeScript

// @declaration: true
function f<A>() {
type Foo<T> = T | { x: Foo<T> };
var x: Foo<A[]>;
return x;
}