22 lines
1,012 B
Text
22 lines
1,012 B
Text
=== tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts ===
|
|
interface A<T> {
|
|
>A : Symbol(A, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 0))
|
|
>T : Symbol(T, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 12))
|
|
|
|
[n: number]: T;
|
|
>n : Symbol(n, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 1, 5))
|
|
>T : Symbol(T, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 12))
|
|
}
|
|
|
|
interface B {
|
|
>B : Symbol(B, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 2, 1))
|
|
|
|
foo: number;
|
|
>foo : Symbol(foo, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 4, 13))
|
|
}
|
|
|
|
interface C extends B, A<string> { } // Should succeed
|
|
>C : Symbol(C, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 6, 1))
|
|
>B : Symbol(B, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 2, 1))
|
|
>A : Symbol(A, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 0))
|
|
|