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