1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
=== tests/cases/compiler/stringIndexerAssignments2.ts ===
class C1 {
>C1 : Symbol(C1, Decl(stringIndexerAssignments2.ts, 0, 0))
[index: string]: string
>index : Symbol(index, Decl(stringIndexerAssignments2.ts, 1, 5))
one: string;
>one : Symbol(C1.one, Decl(stringIndexerAssignments2.ts, 1, 27))
}
class C2 {
>C2 : Symbol(C2, Decl(stringIndexerAssignments2.ts, 3, 1))
one: string;
>one : Symbol(C2.one, Decl(stringIndexerAssignments2.ts, 5, 10))
}
class C3 {
>C3 : Symbol(C3, Decl(stringIndexerAssignments2.ts, 7, 1))
one: number;
>one : Symbol(C3.one, Decl(stringIndexerAssignments2.ts, 9, 10))
two: string;
>two : Symbol(C3.two, Decl(stringIndexerAssignments2.ts, 10, 16))
}
var x: C1;
>x : Symbol(x, Decl(stringIndexerAssignments2.ts, 14, 3))
>C1 : Symbol(C1, Decl(stringIndexerAssignments2.ts, 0, 0))
var a: C2;
>a : Symbol(a, Decl(stringIndexerAssignments2.ts, 15, 3))
>C2 : Symbol(C2, Decl(stringIndexerAssignments2.ts, 3, 1))
var b: C3;
>b : Symbol(b, Decl(stringIndexerAssignments2.ts, 16, 3))
>C3 : Symbol(C3, Decl(stringIndexerAssignments2.ts, 7, 1))
x = a;
>x : Symbol(x, Decl(stringIndexerAssignments2.ts, 14, 3))
>a : Symbol(a, Decl(stringIndexerAssignments2.ts, 15, 3))
x = b;
>x : Symbol(x, Decl(stringIndexerAssignments2.ts, 14, 3))
>b : Symbol(b, Decl(stringIndexerAssignments2.ts, 16, 3))
|