39 lines
1.8 KiB
Text
39 lines
1.8 KiB
Text
=== tests/cases/compiler/mutuallyRecursiveGenericBaseTypes1.ts ===
|
|
interface A<T> {
|
|
>A : Symbol(A, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 12))
|
|
|
|
foo(): B<T>; // instead of B does see this
|
|
>foo : Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16))
|
|
>B : Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 12))
|
|
|
|
foo(): void; // instead of B does see this
|
|
>foo : Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16))
|
|
|
|
foo2(): B<number>;
|
|
>foo2 : Symbol(foo2, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 2, 16))
|
|
>B : Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1))
|
|
}
|
|
|
|
interface B<T> extends A<T> {
|
|
>B : Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 7, 12))
|
|
>A : Symbol(A, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 7, 12))
|
|
|
|
bar(): void;
|
|
>bar : Symbol(bar, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 7, 29))
|
|
}
|
|
|
|
var b: B<number>;
|
|
>b : Symbol(b, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 11, 3))
|
|
>B : Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1))
|
|
|
|
b.foo(); // should not error
|
|
>b.foo : Symbol(A.foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16))
|
|
>b : Symbol(b, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 11, 3))
|
|
>foo : Symbol(A.foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16))
|
|
|
|
|
|
|