TypeScript/tests/cases/compiler/overloadedStaticMethodSpecialization.ts
2014-07-12 17:30:19 -07:00

8 lines
142 B
TypeScript

class A<T> {
static B<S>(v: A<S>): A<S>;
static B<S>(v: S): A<S>;
static B<S>(v: any): A<S> {
return null;
}
}