9 lines
123 B
TypeScript
9 lines
123 B
TypeScript
|
// @declaration: true
|
|||
|
|
|||
|
type Foo<T> = {
|
|||
|
foo<U>(): Foo<U>
|
|||
|
};
|
|||
|
function bar() {
|
|||
|
return {} as Foo<number>;
|
|||
|
}
|