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

16 lines
256 B
TypeScript

interface A<T> {
foo(): B<T>; // instead of B does see this
foo(): void; // instead of B does see this
foo2(): B<number>;
}
interface B<T> extends A<T> {
bar(): void;
}
var b: B<number>;
b.foo(); // should not error