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

8 lines
143 B
TypeScript

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