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

11 lines
150 B
TypeScript

interface Foo<T extends Foo<T, C>, C> {
foo(bar: C): void;
}
class Bar implements Foo<Bar, string> {
foo(bar: string): void {
}
}