|
1 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(230,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
2 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(233,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
3 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(236,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
4 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(239,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
5 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(305,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
6 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(308,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
7 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(311,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
8 | | -tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
| 1 | +tests/cases/compiler/capturedLetConstInLoop7.ts(230,9): error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
| 2 | +tests/cases/compiler/capturedLetConstInLoop7.ts(233,9): error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
| 3 | +tests/cases/compiler/capturedLetConstInLoop7.ts(236,9): error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
| 4 | +tests/cases/compiler/capturedLetConstInLoop7.ts(239,9): error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
| 5 | +tests/cases/compiler/capturedLetConstInLoop7.ts(305,9): error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
| 6 | +tests/cases/compiler/capturedLetConstInLoop7.ts(308,9): error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
| 7 | +tests/cases/compiler/capturedLetConstInLoop7.ts(311,9): error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
| 8 | +tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
9 | 9 |
|
10 | 10 |
|
11 | 11 | ==== tests/cases/compiler/capturedLetConstInLoop7.ts (8 errors) ==== |
@@ -240,22 +240,22 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: This condi |
240 | 240 | (() => x); |
241 | 241 | if (x == 1) { |
242 | 242 | ~~~~~~ |
243 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
| 243 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
244 | 244 | break; |
245 | 245 | } |
246 | 246 | if (x == 1) { |
247 | 247 | ~~~~~~ |
248 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
| 248 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
249 | 249 | break l1_c; |
250 | 250 | } |
251 | 251 | if (x == 2) { |
252 | 252 | ~~~~~~ |
253 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
| 253 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
254 | 254 | continue; |
255 | 255 | } |
256 | 256 | if (x == 2) { |
257 | 257 | ~~~~~~ |
258 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
| 258 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
259 | 259 | continue l1_c; |
260 | 260 | } |
261 | 261 | } |
@@ -323,22 +323,22 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: This condi |
323 | 323 | (() => x + y); |
324 | 324 | if (x == 1) { |
325 | 325 | ~~~~~~ |
326 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
| 326 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
327 | 327 | break; |
328 | 328 | } |
329 | 329 | if (x == 1) { |
330 | 330 | ~~~~~~ |
331 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap. |
| 331 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '1' have no overlap. |
332 | 332 | break l5_c; |
333 | 333 | } |
334 | 334 | if (x == 2) { |
335 | 335 | ~~~~~~ |
336 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
| 336 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
337 | 337 | continue; |
338 | 338 | } |
339 | 339 | if (x == 2) { |
340 | 340 | ~~~~~~ |
341 | | -!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap. |
| 341 | +!!! error TS2367: This comparison appears to be unintentional because the types '0' and '2' have no overlap. |
342 | 342 | continue l5_c; |
343 | 343 | } |
344 | 344 | } |
|
0 commit comments