Skip to content

Commit 42c0bf6

Browse files
Accepted baselines.
1 parent 63a52cd commit 42c0bf6

File tree

37 files changed

+1465
-732
lines changed

37 files changed

+1465
-732
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5151,6 +5151,7 @@ declare namespace ts {
51515151
The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: DiagnosticMessage;
51525152
Operator_0_cannot_be_applied_to_types_1_and_2: DiagnosticMessage;
51535153
Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: DiagnosticMessage;
5154+
The_types_of_these_values_indicates_that_this_condition_will_always_be_0: DiagnosticMessage;
51545155
Type_parameter_name_cannot_be_0: DiagnosticMessage;
51555156
A_parameter_property_is_only_allowed_in_a_constructor_implementation: DiagnosticMessage;
51565157
A_rest_parameter_must_be_of_an_array_type: DiagnosticMessage;

tests/baselines/reference/capturedLetConstInLoop5.errors.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
tests/cases/compiler/capturedLetConstInLoop5.ts(174,13): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
2-
tests/cases/compiler/capturedLetConstInLoop5.ts(229,13): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
1+
tests/cases/compiler/capturedLetConstInLoop5.ts(174,13): 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/capturedLetConstInLoop5.ts(229,13): 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'.
35

46

57
==== tests/cases/compiler/capturedLetConstInLoop5.ts (2 errors) ====
@@ -178,7 +180,8 @@ tests/cases/compiler/capturedLetConstInLoop5.ts(229,13): error TS2365: Operator
178180
(() => x + v);
179181
if (x == 1) {
180182
~~~~~~
181-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
183+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
184+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
182185
return;
183186
}
184187
}
@@ -235,7 +238,8 @@ tests/cases/compiler/capturedLetConstInLoop5.ts(229,13): error TS2365: Operator
235238
(() => x + y + v);
236239
if (x == 1) {
237240
~~~~~~
238-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
241+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
242+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
239243
return;
240244
}
241245
}

tests/baselines/reference/capturedLetConstInLoop5_ES6.errors.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(174,13): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
2-
tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(229,13): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
1+
tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(174,13): 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/capturedLetConstInLoop5_ES6.ts(229,13): 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'.
35

46

57
==== tests/cases/compiler/capturedLetConstInLoop5_ES6.ts (2 errors) ====
@@ -178,7 +180,8 @@ tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(229,13): error TS2365: Opera
178180
(() => x + v);
179181
if (x == 1) {
180182
~~~~~~
181-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
183+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
184+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
182185
return;
183186
}
184187
}
@@ -235,7 +238,8 @@ tests/cases/compiler/capturedLetConstInLoop5_ES6.ts(229,13): error TS2365: Opera
235238
(() => x + y + v);
236239
if (x == 1) {
237240
~~~~~~
238-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
241+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
242+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
239243
return;
240244
}
241245
}

tests/baselines/reference/capturedLetConstInLoop6.errors.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
tests/cases/compiler/capturedLetConstInLoop6.ts(147,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
2-
tests/cases/compiler/capturedLetConstInLoop6.ts(150,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'.
3-
tests/cases/compiler/capturedLetConstInLoop6.ts(194,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
4-
tests/cases/compiler/capturedLetConstInLoop6.ts(197,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'.
1+
tests/cases/compiler/capturedLetConstInLoop6.ts(147,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/capturedLetConstInLoop6.ts(150,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 '2'.
5+
tests/cases/compiler/capturedLetConstInLoop6.ts(194,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 '1'.
7+
tests/cases/compiler/capturedLetConstInLoop6.ts(197,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'.
59

610

711
==== tests/cases/compiler/capturedLetConstInLoop6.ts (4 errors) ====
@@ -153,12 +157,14 @@ tests/cases/compiler/capturedLetConstInLoop6.ts(197,9): error TS2365: Operator '
153157
(() => x);
154158
if (x == 1) {
155159
~~~~~~
156-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
160+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
161+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
157162
break;
158163
}
159164
if (x == 2) {
160165
~~~~~~
161-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'.
166+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
167+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
162168
continue;
163169
}
164170
}
@@ -204,12 +210,14 @@ tests/cases/compiler/capturedLetConstInLoop6.ts(197,9): error TS2365: Operator '
204210
(() => x + y);
205211
if (x == 1) {
206212
~~~~~~
207-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
213+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
214+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
208215
break;
209216
}
210217
if (x == 2) {
211218
~~~~~~
212-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'.
219+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
220+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
213221
continue;
214222
}
215223
}

tests/baselines/reference/capturedLetConstInLoop6_ES6.errors.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(147,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
2-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(150,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'.
3-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(194,9): error TS2365: Operator '==' cannot be applied to types '0' and '1'.
4-
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,9): error TS2365: Operator '==' cannot be applied to types '0' and '2'.
1+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(147,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/capturedLetConstInLoop6_ES6.ts(150,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 '2'.
5+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(194,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 '1'.
7+
tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,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'.
59

610

711
==== tests/cases/compiler/capturedLetConstInLoop6_ES6.ts (4 errors) ====
@@ -153,12 +157,14 @@ tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,9): error TS2365: Operat
153157
(() => x);
154158
if (x == 1) {
155159
~~~~~~
156-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
160+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
161+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
157162
break;
158163
}
159164
if (x == 2) {
160165
~~~~~~
161-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'.
166+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
167+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
162168
continue;
163169
}
164170
}
@@ -204,12 +210,14 @@ tests/cases/compiler/capturedLetConstInLoop6_ES6.ts(197,9): error TS2365: Operat
204210
(() => x + y);
205211
if (x == 1) {
206212
~~~~~~
207-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '1'.
213+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
214+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '1'.
208215
break;
209216
}
210217
if (x == 2) {
211218
~~~~~~
212-
!!! error TS2365: Operator '==' cannot be applied to types '0' and '2'.
219+
!!! error TS2367: The types of these values indicates that this condition will always be 'false'.
220+
!!! error TS2367: Operator '==' cannot be applied to types '0' and '2'.
213221
continue;
214222
}
215223
}

tests/baselines/reference/capturedLetConstInLoop7.errors.txt

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

1018

1119
==== tests/cases/compiler/capturedLetConstInLoop7.ts (8 errors) ====
@@ -240,22 +248,26 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2365: Operator '
240248
(() => x);
241249
if (x == 1) {
242250
~~~~~~
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'.
244253
break;
245254
}
246255
if (x == 1) {
247256
~~~~~~
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'.
249259
break l1_c;
250260
}
251261
if (x == 2) {
252262
~~~~~~
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'.
254265
continue;
255266
}
256267
if (x == 2) {
257268
~~~~~~
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'.
259271
continue l1_c;
260272
}
261273
}
@@ -323,22 +335,26 @@ tests/cases/compiler/capturedLetConstInLoop7.ts(314,9): error TS2365: Operator '
323335
(() => x + y);
324336
if (x == 1) {
325337
~~~~~~
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'.
327340
break;
328341
}
329342
if (x == 1) {
330343
~~~~~~
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'.
332346
break l5_c;
333347
}
334348
if (x == 2) {
335349
~~~~~~
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'.
337352
continue;
338353
}
339354
if (x == 2) {
340355
~~~~~~
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'.
342358
continue l5_c;
343359
}
344360
}

0 commit comments

Comments
 (0)