|
| 1 | +=== tests/cases/conformance/classes/staticIndexSignature/staticIndexSignature3.ts === |
| 2 | +class B { |
| 3 | +>B : Symbol(B, Decl(staticIndexSignature3.ts, 0, 0)) |
| 4 | + |
| 5 | + static readonly [s: string]: number; |
| 6 | +>s : Symbol(s, Decl(staticIndexSignature3.ts, 1, 21)) |
| 7 | + |
| 8 | + static readonly [s: number]: 42 | 233 |
| 9 | +>s : Symbol(s, Decl(staticIndexSignature3.ts, 2, 21)) |
| 10 | +} |
| 11 | + |
| 12 | +class D extends B { |
| 13 | +>D : Symbol(D, Decl(staticIndexSignature3.ts, 3, 1)) |
| 14 | +>B : Symbol(B, Decl(staticIndexSignature3.ts, 0, 0)) |
| 15 | + |
| 16 | + static readonly [s: string]: number |
| 17 | +>s : Symbol(s, Decl(staticIndexSignature3.ts, 6, 21)) |
| 18 | +} |
| 19 | + |
| 20 | +class ED extends D { |
| 21 | +>ED : Symbol(ED, Decl(staticIndexSignature3.ts, 7, 1)) |
| 22 | +>D : Symbol(D, Decl(staticIndexSignature3.ts, 3, 1)) |
| 23 | + |
| 24 | + static readonly [s: string]: boolean |
| 25 | +>s : Symbol(s, Decl(staticIndexSignature3.ts, 10, 21)) |
| 26 | + |
| 27 | + static readonly [s: number]: 1 |
| 28 | +>s : Symbol(s, Decl(staticIndexSignature3.ts, 11, 21)) |
| 29 | +} |
| 30 | + |
| 31 | +class DD extends D { |
| 32 | +>DD : Symbol(DD, Decl(staticIndexSignature3.ts, 12, 1)) |
| 33 | +>D : Symbol(D, Decl(staticIndexSignature3.ts, 3, 1)) |
| 34 | + |
| 35 | + static readonly [s: string]: 421 |
| 36 | +>s : Symbol(s, Decl(staticIndexSignature3.ts, 15, 21)) |
| 37 | +} |
| 38 | + |
| 39 | +const a = B["f"]; |
| 40 | +>a : Symbol(a, Decl(staticIndexSignature3.ts, 18, 5)) |
| 41 | +>B : Symbol(B, Decl(staticIndexSignature3.ts, 0, 0)) |
| 42 | + |
| 43 | +const b = B[42]; |
| 44 | +>b : Symbol(b, Decl(staticIndexSignature3.ts, 19, 5)) |
| 45 | +>B : Symbol(B, Decl(staticIndexSignature3.ts, 0, 0)) |
| 46 | + |
| 47 | +const c = D["f"] |
| 48 | +>c : Symbol(c, Decl(staticIndexSignature3.ts, 20, 5)) |
| 49 | +>D : Symbol(D, Decl(staticIndexSignature3.ts, 3, 1)) |
| 50 | + |
| 51 | +const d = D[42] |
| 52 | +>d : Symbol(d, Decl(staticIndexSignature3.ts, 21, 5)) |
| 53 | +>D : Symbol(D, Decl(staticIndexSignature3.ts, 3, 1)) |
| 54 | + |
| 55 | +const e = ED["f"] |
| 56 | +>e : Symbol(e, Decl(staticIndexSignature3.ts, 22, 5)) |
| 57 | +>ED : Symbol(ED, Decl(staticIndexSignature3.ts, 7, 1)) |
| 58 | + |
| 59 | +const f = ED[42] |
| 60 | +>f : Symbol(f, Decl(staticIndexSignature3.ts, 23, 5)) |
| 61 | +>ED : Symbol(ED, Decl(staticIndexSignature3.ts, 7, 1)) |
| 62 | + |
| 63 | +const g = DD["f"] |
| 64 | +>g : Symbol(g, Decl(staticIndexSignature3.ts, 24, 5)) |
| 65 | +>DD : Symbol(DD, Decl(staticIndexSignature3.ts, 12, 1)) |
| 66 | + |
| 67 | +const h = DD[42] |
| 68 | +>h : Symbol(h, Decl(staticIndexSignature3.ts, 25, 5)) |
| 69 | +>DD : Symbol(DD, Decl(staticIndexSignature3.ts, 12, 1)) |
| 70 | + |
0 commit comments