11 lines
177 B
TypeScript
11 lines
177 B
TypeScript
|
// @declaration: true
|
|||
|
|
|||
|
type Foo<T, Y> = {
|
|||
|
foo<U, J>(): Foo<U, J>
|
|||
|
};
|
|||
|
type SubFoo<R, S> = Foo<S, R>;
|
|||
|
|
|||
|
function foo() {
|
|||
|
return {} as SubFoo<number, string>;
|
|||
|
}
|