Skip to content

Commit 441388c

Browse files
Accepted baselines.
1 parent 6f06fd0 commit 441388c

File tree

37 files changed

+733
-1465
lines changed

37 files changed

+733
-1465
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5152,7 +5152,7 @@ declare namespace ts {
51525152
The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: DiagnosticMessage;
51535153
Operator_0_cannot_be_applied_to_types_1_and_2: DiagnosticMessage;
51545154
Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: DiagnosticMessage;
5155-
The_types_of_these_values_indicate_that_this_condition_will_always_be_0: DiagnosticMessage;
5155+
This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap: DiagnosticMessage;
51565156
Type_parameter_name_cannot_be_0: DiagnosticMessage;
51575157
A_parameter_property_is_only_allowed_in_a_constructor_implementation: DiagnosticMessage;
51585158
A_rest_parameter_must_be_of_an_array_type: DiagnosticMessage;

tests/baselines/reference/capturedLetConstInLoop5.errors.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
tests/cases/compiler/capturedLetConstInLoop5.ts(174,13): 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/capturedLetConstInLoop5.ts(229,13): 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'.
1+
tests/cases/compiler/capturedLetConstInLoop5.ts(174,13): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
2+
tests/cases/compiler/capturedLetConstInLoop5.ts(229,13): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
53

64

75
==== tests/cases/compiler/capturedLetConstInLoop5.ts (2 errors) ====
@@ -180,8 +178,7 @@ tests/cases/compiler/capturedLetConstInLoop5.ts(229,13): error TS2367: The types
180178
(() => x + v);
181179
if (x == 1) {
182180
~~~~~~
183-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
184-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
181+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
185182
return;
186183
}
187184
}
@@ -238,8 +235,7 @@ tests/cases/compiler/capturedLetConstInLoop5.ts(229,13): error TS2367: The types
238235
(() => x + y + v);
239236
if (x == 1) {
240237
~~~~~~
241-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
242-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
238+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
243239
return;
244240
}
245241
}

tests/baselines/reference/capturedLetConstInLoop5_ES6.errors.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(174,13): 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/capturedLetConstInLoop5_ES6.ts(229,13): 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'.
1+
tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(174,13): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
2+
tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(229,13): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
53

64

75
==== tests/cases/compiler/capturedLetConstInLoop5_ES6.ts (2 errors) ====
@@ -180,8 +178,7 @@ tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(229,13): error TS2367: The t
180178
(() => x + v);
181179
if (x == 1) {
182180
~~~~~~
183-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
184-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
181+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
185182
return;
186183
}
187184
}
@@ -238,8 +235,7 @@ tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(229,13): error TS2367: The t
238235
(() => x + y + v);
239236
if (x == 1) {
240237
~~~~~~
241-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
242-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
238+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
243239
return;
244240
}
245241
}

tests/baselines/reference/capturedLetConstInLoop6.errors.txt

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
tests/cases/compiler/capturedLetConstInLoop6.ts(147,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/capturedLetConstInLoop6.ts(150,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 '2'.
5-
tests/cases/compiler/capturedLetConstInLoop6.ts(194,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 '1'.
7-
tests/cases/compiler/capturedLetConstInLoop6.ts(197,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'.
1+
tests/cases/compiler/capturedLetConstInLoop6.ts(147,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
2+
tests/cases/compiler/capturedLetConstInLoop6.ts(150,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
3+
tests/cases/compiler/capturedLetConstInLoop6.ts(194,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
4+
tests/cases/compiler/capturedLetConstInLoop6.ts(197,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
95

106

117
==== tests/cases/compiler/capturedLetConstInLoop6.ts (4 errors) ====
@@ -157,14 +153,12 @@ tests/cases/compiler/capturedLetConstInLoop6.ts(197,9): error TS2367: The types
157153
(() => x);
158154
if (x == 1) {
159155
~~~~~~
160-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
161-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
156+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
162157
break;
163158
}
164159
if (x == 2) {
165160
~~~~~~
166-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
167-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
161+
!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
168162
continue;
169163
}
170164
}
@@ -210,14 +204,12 @@ tests/cases/compiler/capturedLetConstInLoop6.ts(197,9): error TS2367: The types
210204
(() => x + y);
211205
if (x == 1) {
212206
~~~~~~
213-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
214-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
207+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
215208
break;
216209
}
217210
if (x == 2) {
218211
~~~~~~
219-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
220-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
212+
!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
221213
continue;
222214
}
223215
}

tests/baselines/reference/capturedLetConstInLoop6_ES6.errors.txt

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(147,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/capturedLetConstInLoop6_ES6.ts(150,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 '2'.
5-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(194,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 '1'.
7-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,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'.
1+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(147,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
2+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(150,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
3+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(194,9): error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
4+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,9): error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
95

106

117
==== tests/cases/compiler/capturedLetConstInLoop6_ES6.ts (4 errors) ====
@@ -157,14 +153,12 @@ tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,9): error TS2367: The ty
157153
(() => x);
158154
if (x == 1) {
159155
~~~~~~
160-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
161-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
156+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
162157
break;
163158
}
164159
if (x == 2) {
165160
~~~~~~
166-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
167-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
161+
!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
168162
continue;
169163
}
170164
}
@@ -210,14 +204,12 @@ tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,9): error TS2367: The ty
210204
(() => x + y);
211205
if (x == 1) {
212206
~~~~~~
213-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
214-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
207+
!!! error TS2367: This condition will always return 'false' since the types '0' and '1' have no overlap.
215208
break;
216209
}
217210
if (x == 2) {
218211
~~~~~~
219-
!!! error TS2367: The types of these values indicate that this condition will always be 'false'.
220-
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
212+
!!! error TS2367: This condition will always return 'false' since the types '0' and '2' have no overlap.
221213
continue;
222214
}
223215
}

tests/baselines/reference/capturedLetConstInLoop7.errors.txt

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
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.
179

1810

1911
==== tests/cases/compiler/capturedLetConstInLoop7.ts (8 errors) ====
@@ -248,26 +240,22 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: The types
248240
(() => x);
249241
if (x == 1) {
250242
~~~~~~
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.
253244
break;
254245
}
255246
if (x == 1) {
256247
~~~~~~
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.
259249
break l1_c;
260250
}
261251
if (x == 2) {
262252
~~~~~~
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.
265254
continue;
266255
}
267256
if (x == 2) {
268257
~~~~~~
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.
271259
continue l1_c;
272260
}
273261
}
@@ -335,26 +323,22 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2367: The types
335323
(() => x + y);
336324
if (x == 1) {
337325
~~~~~~
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.
340327
break;
341328
}
342329
if (x == 1) {
343330
~~~~~~
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.
346332
break l5_c;
347333
}
348334
if (x == 2) {
349335
~~~~~~
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.
352337
continue;
353338
}
354339
if (x == 2) {
355340
~~~~~~
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.
358342
continue l5_c;
359343
}
360344
}

0 commit comments

Comments
 (0)