21 lines
375 B
TypeScript
21 lines
375 B
TypeScript
//// [mutuallyRecursiveGenericBaseTypes1.ts]
|
|
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
|
|
|
|
|
|
|
|
|
|
//// [mutuallyRecursiveGenericBaseTypes1.js]
|
|
var b;
|
|
b.foo(); // should not error
|