2014-08-15 23:33:16 +02:00
|
|
|
=== 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>
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>S : S
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>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
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>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
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>S : S
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|