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

8 lines
162 B
TypeScript

class A1<T> {
static B<S>(v: A1<S>): A1<S>; // 1
static B<S>(v: S): A1<S>; // 2 : Error Duplicate signature
static B<S>(v: any): A1<S> {
return null;
}
}