c456bbd466
* New aliases for type alias instantiations * New aliases for conditional, mapped, and anonymous object type instantiations * Accept new baselines * Fix issues with re-aliasing * Accept new baselines
20 lines
376 B
Plaintext
20 lines
376 B
Plaintext
=== tests/cases/compiler/declarationEmitTypeAliasWithTypeParameters4.ts ===
|
|
type Foo<T, Y> = {
|
|
>Foo : Foo<T, Y>
|
|
|
|
foo<U, J>(): Foo<U, J>
|
|
>foo : <U, J>() => Foo<U, J>
|
|
|
|
};
|
|
type SubFoo<R> = Foo<string, R>;
|
|
>SubFoo : SubFoo<R>
|
|
|
|
function foo() {
|
|
>foo : () => SubFoo<number>
|
|
|
|
return {} as SubFoo<number>;
|
|
>{} as SubFoo<number> : SubFoo<number>
|
|
>{} : {}
|
|
}
|
|
|