TypeScript/tests/cases/compiler/declarationEmitInferredTypeAlias9.ts

8 lines
143 B
TypeScript

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