|
1 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(230,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
2 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(233,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
3 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(236,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
4 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(239,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
5 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(305,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
6 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(308,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
7 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(311,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
8 |
| -tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
| 1 | +tests/cases/compiler/capturedLetConstInLoop7.ts(230,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 2 | + Operator '==' cannot be applied to types '0' and '1'. |
| 3 | +tests/cases/compiler/capturedLetConstInLoop7.ts(233,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 4 | + Operator '==' cannot be applied to types '0' and '1'. |
| 5 | +tests/cases/compiler/capturedLetConstInLoop7.ts(236,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 6 | + Operator '==' cannot be applied to types '0' and '2'. |
| 7 | +tests/cases/compiler/capturedLetConstInLoop7.ts(239,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 8 | + Operator '==' cannot be applied to types '0' and '2'. |
| 9 | +tests/cases/compiler/capturedLetConstInLoop7.ts(305,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 10 | + Operator '==' cannot be applied to types '0' and '1'. |
| 11 | +tests/cases/compiler/capturedLetConstInLoop7.ts(308,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 12 | + Operator '==' cannot be applied to types '0' and '1'. |
| 13 | +tests/cases/compiler/capturedLetConstInLoop7.ts(311,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 14 | + Operator '==' cannot be applied to types '0' and '2'. |
| 15 | +tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 16 | + Operator '==' cannot be applied to types '0' and '2'. |
9 | 17 |
|
10 | 18 |
|
11 | 19 | ==== tests/cases/compiler/capturedLetConstInLoop7.ts (8 errors) ====
|
@@ -240,22 +248,26 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2365: Operator '
|
240 | 248 | (() => x);
|
241 | 249 | if (x == 1) {
|
242 | 250 | ~~~~~~
|
243 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
| 251 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 252 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'. |
244 | 253 | break;
|
245 | 254 | }
|
246 | 255 | if (x == 1) {
|
247 | 256 | ~~~~~~
|
248 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
| 257 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 258 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'. |
249 | 259 | break l1_c;
|
250 | 260 | }
|
251 | 261 | if (x == 2) {
|
252 | 262 | ~~~~~~
|
253 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
| 263 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 264 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'. |
254 | 265 | continue;
|
255 | 266 | }
|
256 | 267 | if (x == 2) {
|
257 | 268 | ~~~~~~
|
258 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
| 269 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 270 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'. |
259 | 271 | continue l1_c;
|
260 | 272 | }
|
261 | 273 | }
|
@@ -323,22 +335,26 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2365: Operator '
|
323 | 335 | (() => x + y);
|
324 | 336 | if (x == 1) {
|
325 | 337 | ~~~~~~
|
326 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
| 338 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 339 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'. |
327 | 340 | break;
|
328 | 341 | }
|
329 | 342 | if (x == 1) {
|
330 | 343 | ~~~~~~
|
331 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'. |
| 344 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 345 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'. |
332 | 346 | break l5_c;
|
333 | 347 | }
|
334 | 348 | if (x == 2) {
|
335 | 349 | ~~~~~~
|
336 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
| 350 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 351 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'. |
337 | 352 | continue;
|
338 | 353 | }
|
339 | 354 | if (x == 2) {
|
340 | 355 | ~~~~~~
|
341 |
| -!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'. |
| 356 | +!!! error TS2367: The types of these values indicates that this condition will always be 'false'. |
| 357 | +!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'. |
342 | 358 | continue l5_c;
|
343 | 359 | }
|
344 | 360 | }
|
|
0 commit comments