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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
=== tests/cases/conformance/classes/staticIndexSignature/staticIndexSignature4.ts ===
class B {
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
static readonly [s: string]: number;
>s : Symbol(s, Decl(staticIndexSignature4.ts, 1, 21))
static readonly [s: number]: 42 | 233
>s : Symbol(s, Decl(staticIndexSignature4.ts, 2, 21))
}
class D {
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
static [s: string]: number;
>s : Symbol(s, Decl(staticIndexSignature4.ts, 6, 12))
static [s: number]: 42 | 233
>s : Symbol(s, Decl(staticIndexSignature4.ts, 7, 12))
}
interface IB {
>IB : Symbol(IB, Decl(staticIndexSignature4.ts, 8, 1))
static [s: string]: number;
>s : Symbol(s, Decl(staticIndexSignature4.ts, 11, 12))
static [s: number]: 42 | 233;
>s : Symbol(s, Decl(staticIndexSignature4.ts, 12, 12))
}
declare const v: number
>v : Symbol(v, Decl(staticIndexSignature4.ts, 15, 13))
declare const i: IB
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>IB : Symbol(IB, Decl(staticIndexSignature4.ts, 8, 1))
if (v === 0) {
>v : Symbol(v, Decl(staticIndexSignature4.ts, 15, 13))
B.a = D.a
>B.a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
>a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
>D.a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
>a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
B[2] = D[2]
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
} else if (v === 1) {
>v : Symbol(v, Decl(staticIndexSignature4.ts, 15, 13))
D.a = B.a
>D.a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
>a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
>B.a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
>a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
D[2] = B[2]
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
} else if (v === 2) {
>v : Symbol(v, Decl(staticIndexSignature4.ts, 15, 13))
B.a = i.a
>B.a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
>a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
>i.a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
B[2] = i[2]
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
D.a = i.a
>D.a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
>a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
>i.a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
D[2] = i [2]
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
} else if (v === 3) {
>v : Symbol(v, Decl(staticIndexSignature4.ts, 15, 13))
i.a = B.a
>i.a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
>B.a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
>a : Symbol(B.__index, Decl(staticIndexSignature4.ts, 0, 9))
i[2] = B[2]
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
} else if (v === 4) {
>v : Symbol(v, Decl(staticIndexSignature4.ts, 15, 13))
i.a = D.a
>i.a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>a : Symbol(IB.__index, Decl(staticIndexSignature4.ts, 10, 14))
>D.a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
>D : Symbol(D, Decl(staticIndexSignature4.ts, 3, 1))
>a : Symbol(D.__index, Decl(staticIndexSignature4.ts, 5, 9))
i[2] = B[2]
>i : Symbol(i, Decl(staticIndexSignature4.ts, 16, 13))
>B : Symbol(B, Decl(staticIndexSignature4.ts, 0, 0))
}
|