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