TypeScript/tests/cases/compiler/mutuallyRecursiveGenericBaseTypes1.ts

16 lines
256 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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