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

15 lines
231 B
TypeScript

interface IFoo<T> {
foo<T>(x: T): T;
}
class C<T> implements IFoo<T> {
foo(x: string): number {
return null;
}
}
class C2<T> implements IFoo<T> {
foo<U>(x: string): number {
return null;
}
}