|
| 1 | +=== tests/cases/compiler/unusedVariablesWithUnderscoreInDestructuringArray.ts === |
| 2 | +function t1() { |
| 3 | +>t1 : Symbol(t1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 0, 0)) |
| 4 | + |
| 5 | + const [_a1, b1] = [1, 2]; |
| 6 | +>_a1 : Symbol(_a1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 1, 11)) |
| 7 | +>b1 : Symbol(b1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 1, 15)) |
| 8 | + |
| 9 | + console.log(b1); |
| 10 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 11 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 12 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 13 | +>b1 : Symbol(b1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 1, 15)) |
| 14 | + |
| 15 | + const [a2, _b2] = [1, 2]; |
| 16 | +>a2 : Symbol(a2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 4, 11)) |
| 17 | +>_b2 : Symbol(_b2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 4, 14)) |
| 18 | + |
| 19 | + console.log(a2); |
| 20 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 21 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 22 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 23 | +>a2 : Symbol(a2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 4, 11)) |
| 24 | + |
| 25 | + const [_a3, _b3] = [1, 2]; |
| 26 | +>_a3 : Symbol(_a3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 7, 11)) |
| 27 | +>_b3 : Symbol(_b3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 7, 15)) |
| 28 | +} |
| 29 | + |
| 30 | +function t2() { |
| 31 | +>t2 : Symbol(t2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 8, 1)) |
| 32 | + |
| 33 | + const [_a1, b1] = [1, 2]; |
| 34 | +>_a1 : Symbol(_a1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 11, 11)) |
| 35 | +>b1 : Symbol(b1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 11, 15)) |
| 36 | + |
| 37 | + const [a2, _b2] = [1, 2]; |
| 38 | +>a2 : Symbol(a2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 12, 11)) |
| 39 | +>_b2 : Symbol(_b2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 12, 14)) |
| 40 | + |
| 41 | + const [a3, b3] = [1, 2]; |
| 42 | +>a3 : Symbol(a3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 13, 11)) |
| 43 | +>b3 : Symbol(b3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 13, 14)) |
| 44 | +} |
| 45 | + |
| 46 | +function t3() { |
| 47 | +>t3 : Symbol(t3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 14, 1)) |
| 48 | + |
| 49 | + const [_a1, [[_b1, c1]], d1, _e1] = [1, [[2, 3]], 4, 5]; |
| 50 | +>_a1 : Symbol(_a1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 11)) |
| 51 | +>_b1 : Symbol(_b1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 18)) |
| 52 | +>c1 : Symbol(c1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 22)) |
| 53 | +>d1 : Symbol(d1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 28)) |
| 54 | +>_e1 : Symbol(_e1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 32)) |
| 55 | + |
| 56 | + console.log(c1, d1); |
| 57 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 58 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 59 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 60 | +>c1 : Symbol(c1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 22)) |
| 61 | +>d1 : Symbol(d1, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 17, 28)) |
| 62 | + |
| 63 | + const [_a2, [[_b2, _c2]], _d2, _e2] = [1, [[2, 3]], 4, 5]; |
| 64 | +>_a2 : Symbol(_a2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 20, 11)) |
| 65 | +>_b2 : Symbol(_b2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 20, 18)) |
| 66 | +>_c2 : Symbol(_c2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 20, 22)) |
| 67 | +>_d2 : Symbol(_d2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 20, 29)) |
| 68 | +>_e2 : Symbol(_e2, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 20, 34)) |
| 69 | + |
| 70 | + const [a3, [[b3, c3]], d3, e3] = [1, [[2, 3]], 4, 5]; |
| 71 | +>a3 : Symbol(a3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 22, 11)) |
| 72 | +>b3 : Symbol(b3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 22, 17)) |
| 73 | +>c3 : Symbol(c3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 22, 20)) |
| 74 | +>d3 : Symbol(d3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 22, 26)) |
| 75 | +>e3 : Symbol(e3, Decl(unusedVariablesWithUnderscoreInDestructuringArray.ts, 22, 30)) |
| 76 | +} |
| 77 | + |
0 commit comments