|
| 1 | +tests/cases/compiler/f2.ts(5,1): error TS2364: Invalid left-hand side of assignment expression. |
| 2 | +tests/cases/compiler/f2.ts(6,1): error TS2364: Invalid left-hand side of assignment expression. |
| 3 | +tests/cases/compiler/f2.ts(7,1): error TS2364: Invalid left-hand side of assignment expression. |
| 4 | +tests/cases/compiler/f2.ts(7,7): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 5 | +tests/cases/compiler/f2.ts(8,1): error TS2364: Invalid left-hand side of assignment expression. |
| 6 | +tests/cases/compiler/f2.ts(10,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 7 | +tests/cases/compiler/f2.ts(11,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 8 | +tests/cases/compiler/f2.ts(12,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 9 | +tests/cases/compiler/f2.ts(13,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 10 | +tests/cases/compiler/f2.ts(15,1): error TS2364: Invalid left-hand side of assignment expression. |
| 11 | +tests/cases/compiler/f2.ts(16,1): error TS2364: Invalid left-hand side of assignment expression. |
| 12 | +tests/cases/compiler/f2.ts(17,1): error TS2364: Invalid left-hand side of assignment expression. |
| 13 | +tests/cases/compiler/f2.ts(17,8): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 14 | +tests/cases/compiler/f2.ts(18,1): error TS2364: Invalid left-hand side of assignment expression. |
| 15 | +tests/cases/compiler/f2.ts(20,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 16 | +tests/cases/compiler/f2.ts(21,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 17 | +tests/cases/compiler/f2.ts(22,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 18 | +tests/cases/compiler/f2.ts(23,1): error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 19 | +tests/cases/compiler/f2.ts(25,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 20 | +tests/cases/compiler/f2.ts(26,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 21 | +tests/cases/compiler/f2.ts(27,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 22 | +tests/cases/compiler/f2.ts(28,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 23 | +tests/cases/compiler/f2.ts(29,6): error TS2406: Invalid left-hand side in 'for...in' statement. |
| 24 | +tests/cases/compiler/f2.ts(29,12): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 25 | +tests/cases/compiler/f2.ts(30,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 26 | +tests/cases/compiler/f2.ts(30,12): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 27 | +tests/cases/compiler/f2.ts(31,6): error TS2406: Invalid left-hand side in 'for...in' statement. |
| 28 | +tests/cases/compiler/f2.ts(32,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 29 | +tests/cases/compiler/f2.ts(34,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 30 | +tests/cases/compiler/f2.ts(35,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 31 | +tests/cases/compiler/f2.ts(36,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 32 | +tests/cases/compiler/f2.ts(37,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 33 | +tests/cases/compiler/f2.ts(38,6): error TS2406: Invalid left-hand side in 'for...in' statement. |
| 34 | +tests/cases/compiler/f2.ts(38,13): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 35 | +tests/cases/compiler/f2.ts(39,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 36 | +tests/cases/compiler/f2.ts(39,13): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 37 | +tests/cases/compiler/f2.ts(40,6): error TS2406: Invalid left-hand side in 'for...in' statement. |
| 38 | +tests/cases/compiler/f2.ts(41,6): error TS2487: Invalid left-hand side in 'for...of' statement. |
| 39 | + |
| 40 | + |
| 41 | +==== tests/cases/compiler/f1.ts (0 errors) ==== |
| 42 | + export var x = 1; |
| 43 | + |
| 44 | +==== tests/cases/compiler/f2.ts (38 errors) ==== |
| 45 | + import * as stuff from 'f1'; |
| 46 | + |
| 47 | + var n = 'baz'; |
| 48 | + |
| 49 | + stuff.x = 0; |
| 50 | + ~~~~~~~ |
| 51 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 52 | + stuff['x'] = 1; |
| 53 | + ~~~~~~~~~~ |
| 54 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 55 | + stuff.blah = 2; |
| 56 | + ~~~~~~~~~~ |
| 57 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 58 | + ~~~~ |
| 59 | +!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 60 | + stuff[n] = 3; |
| 61 | + ~~~~~~~~ |
| 62 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 63 | + |
| 64 | + stuff.x++; |
| 65 | + ~~~~~~~ |
| 66 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 67 | + stuff['x']++; |
| 68 | + ~~~~~~~~~~ |
| 69 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 70 | + stuff['blah']++; |
| 71 | + ~~~~~~~~~~~~~ |
| 72 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 73 | + stuff[n]++; |
| 74 | + ~~~~~~~~ |
| 75 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 76 | + |
| 77 | + (stuff.x) = 0; |
| 78 | + ~~~~~~~~~ |
| 79 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 80 | + (stuff['x']) = 1; |
| 81 | + ~~~~~~~~~~~~ |
| 82 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 83 | + (stuff.blah) = 2; |
| 84 | + ~~~~~~~~~~~~ |
| 85 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 86 | + ~~~~ |
| 87 | +!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 88 | + (stuff[n]) = 3; |
| 89 | + ~~~~~~~~~~ |
| 90 | +!!! error TS2364: Invalid left-hand side of assignment expression. |
| 91 | + |
| 92 | + (stuff.x)++; |
| 93 | + ~~~~~~~~~ |
| 94 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 95 | + (stuff['x'])++; |
| 96 | + ~~~~~~~~~~~~ |
| 97 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 98 | + (stuff['blah'])++; |
| 99 | + ~~~~~~~~~~~~~~~ |
| 100 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 101 | + (stuff[n])++; |
| 102 | + ~~~~~~~~~~ |
| 103 | +!!! error TS2357: The operand of an increment or decrement operator must be a variable, property or indexer. |
| 104 | + |
| 105 | + for (stuff.x in []) {} |
| 106 | + ~~~~~~~ |
| 107 | +!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 108 | + for (stuff.x of []) {} |
| 109 | + ~~~~~~~ |
| 110 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 111 | + for (stuff['x'] in []) {} |
| 112 | + ~~~~~~~~~~ |
| 113 | +!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 114 | + for (stuff['x'] of []) {} |
| 115 | + ~~~~~~~~~~ |
| 116 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 117 | + for (stuff.blah in []) {} |
| 118 | + ~~~~~~~~~~ |
| 119 | +!!! error TS2406: Invalid left-hand side in 'for...in' statement. |
| 120 | + ~~~~ |
| 121 | +!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 122 | + for (stuff.blah of []) {} |
| 123 | + ~~~~~~~~~~ |
| 124 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 125 | + ~~~~ |
| 126 | +!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 127 | + for (stuff[n] in []) {} |
| 128 | + ~~~~~~~~ |
| 129 | +!!! error TS2406: Invalid left-hand side in 'for...in' statement. |
| 130 | + for (stuff[n] of []) {} |
| 131 | + ~~~~~~~~ |
| 132 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 133 | + |
| 134 | + for ((stuff.x) in []) {} |
| 135 | + ~~~~~~~~~ |
| 136 | +!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 137 | + for ((stuff.x) of []) {} |
| 138 | + ~~~~~~~~~ |
| 139 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 140 | + for ((stuff['x']) in []) {} |
| 141 | + ~~~~~~~~~~~~ |
| 142 | +!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. |
| 143 | + for ((stuff['x']) of []) {} |
| 144 | + ~~~~~~~~~~~~ |
| 145 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 146 | + for ((stuff.blah) in []) {} |
| 147 | + ~~~~~~~~~~~~ |
| 148 | +!!! error TS2406: Invalid left-hand side in 'for...in' statement. |
| 149 | + ~~~~ |
| 150 | +!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 151 | + for ((stuff.blah) of []) {} |
| 152 | + ~~~~~~~~~~~~ |
| 153 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 154 | + ~~~~ |
| 155 | +!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'. |
| 156 | + for ((stuff[n]) in []) {} |
| 157 | + ~~~~~~~~~~ |
| 158 | +!!! error TS2406: Invalid left-hand side in 'for...in' statement. |
| 159 | + for ((stuff[n]) of []) {} |
| 160 | + ~~~~~~~~~~ |
| 161 | +!!! error TS2487: Invalid left-hand side in 'for...of' statement. |
| 162 | + |
| 163 | + |
| 164 | + |
0 commit comments