TypeScript/tests/cases/compiler/overloadedStaticMethodSpecialization.ts

8 lines
142 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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;
}
}