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