You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/expr.errors.txt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@ tests/cases/compiler/expr.ts(87,5): error TS2587: Types 'number' and 'string' ha
2
2
tests/cases/compiler/expr.ts(88,5): error TS2587: Types 'number' and 'boolean' have no overlap. Consider explicitly converting the left side using `Boolean(x)`.
3
3
tests/cases/compiler/expr.ts(94,5): error TS2587: Types 'string' and 'number' have no overlap. Consider explicitly converting the left side using `Number(x)`.
4
4
tests/cases/compiler/expr.ts(95,5): error TS2587: Types 'string' and 'boolean' have no overlap. Consider explicitly converting the left side using `Boolean(x)`.
5
-
tests/cases/compiler/expr.ts(98,5): error TS2588: Types 'string' and 'E' have no overlap. Consider explicitly converting the right side using `String(x)`.
5
+
tests/cases/compiler/expr.ts(98,5): error TS2587: Types 'string' and 'E' have no overlap. Consider explicitly converting the left side using `Number(x)`.
6
6
tests/cases/compiler/expr.ts(115,5): error TS2587: Types 'E' and 'string' have no overlap. Consider explicitly converting the left side using `String(x)`.
7
-
tests/cases/compiler/expr.ts(116,5): error TS2367: This condition will always return 'false' since the types 'E' and 'false' have no overlap.
7
+
tests/cases/compiler/expr.ts(116,5): error TS2587: Types 'E' and 'false' have no overlap. Consider explicitly converting the left side using `Boolean(x)`.
8
8
tests/cases/compiler/expr.ts(142,5): error TS2365: Operator '+' cannot be applied to types 'number' and 'false'.
9
9
tests/cases/compiler/expr.ts(143,5): error TS2365: Operator '+' cannot be applied to types 'number' and 'I'.
10
10
tests/cases/compiler/expr.ts(161,5): error TS2365: Operator '+' cannot be applied to types 'I' and 'number'.
@@ -177,7 +177,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
177
177
s==s;
178
178
s==e;
179
179
~~~~
180
-
!!! error TS2588: Types 'string' and 'E' have no overlap. Consider explicitly converting the right side using `String(x)`.
180
+
!!! error TS2587: Types 'string' and 'E' have no overlap. Consider explicitly converting the left side using `Number(x)`.
181
181
182
182
a==n;
183
183
a==s;
@@ -199,7 +199,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
199
199
!!! error TS2587: Types 'E' and 'string' have no overlap. Consider explicitly converting the left side using `String(x)`.
200
200
e==b;
201
201
~~~~
202
-
!!! error TS2367: This condition will always return 'false' since the types 'E' and 'false' have no overlap.
202
+
!!! error TS2587: Types 'E' and 'false' have no overlap. Consider explicitly converting the left side using `Boolean(x)`.
0 commit comments