34 lines
533 B
Text
34 lines
533 B
Text
=== tests/cases/compiler/overloadedStaticMethodSpecialization.ts ===
|
|
class A<T> {
|
|
>A : A<T>
|
|
>T : T
|
|
|
|
static B<S>(v: A<S>): A<S>;
|
|
>B : { <S>(v: A<S>): A<S>; <S>(v: S): A<S>; }
|
|
>S : S
|
|
>v : A<S>
|
|
>A : A<T>
|
|
>S : S
|
|
>A : A<T>
|
|
>S : S
|
|
|
|
static B<S>(v: S): A<S>;
|
|
>B : { <S>(v: A<S>): A<S>; <S>(v: S): A<S>; }
|
|
>S : S
|
|
>v : S
|
|
>S : S
|
|
>A : A<T>
|
|
>S : S
|
|
|
|
static B<S>(v: any): A<S> {
|
|
>B : { <S>(v: A<S>): A<S>; <S>(v: S): A<S>; }
|
|
>S : S
|
|
>v : any
|
|
>A : A<T>
|
|
>S : S
|
|
|
|
return null;
|
|
>null : null
|
|
}
|
|
}
|
|
|