14 lines
231 B
TypeScript
14 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;
|
|
}
|
|
}
|