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
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
tests/cases/compiler/expr.ts(87,5): error TS2367: This condition will always return 'false' since the types 'number' and 'string' have no overlap.
2
-
tests/cases/compiler/expr.ts(88,5): error TS2367: This condition will always return 'false' since the types 'number' and 'false' have no overlap.
2
+
tests/cases/compiler/expr.ts(88,5): error TS2367: This condition will always return 'false' since the types 'number' and 'boolean' have no overlap.
3
3
tests/cases/compiler/expr.ts(94,5): error TS2367: This condition will always return 'false' since the types 'string' and 'number' have no overlap.
4
-
tests/cases/compiler/expr.ts(95,5): error TS2367: This condition will always return 'false' since the types 'string' and 'false' have no overlap.
4
+
tests/cases/compiler/expr.ts(95,5): error TS2367: This condition will always return 'false' since the types 'string' and 'boolean' have no overlap.
5
5
tests/cases/compiler/expr.ts(98,5): error TS2367: This condition will always return 'false' since the types 'string' and 'E' have no overlap.
6
6
tests/cases/compiler/expr.ts(115,5): error TS2367: This condition will always return 'false' since the types 'E' and 'string' have no overlap.
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.
8
-
tests/cases/compiler/expr.ts(142,5): error TS2365: Operator '+' cannot be applied to types 'number' and 'false'.
7
+
tests/cases/compiler/expr.ts(116,5): error TS2367: This condition will always return 'false' since the types 'E' and 'boolean' have no overlap.
8
+
tests/cases/compiler/expr.ts(142,5): error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'.
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'.
11
-
tests/cases/compiler/expr.ts(163,5): error TS2365: Operator '+' cannot be applied to types 'I' and 'false'.
11
+
tests/cases/compiler/expr.ts(163,5): error TS2365: Operator '+' cannot be applied to types 'I' and 'boolean'.
12
12
tests/cases/compiler/expr.ts(165,5): error TS2365: Operator '+' cannot be applied to types 'I' and 'I'.
13
13
tests/cases/compiler/expr.ts(166,5): error TS2365: Operator '+' cannot be applied to types 'I' and 'E'.
14
-
tests/cases/compiler/expr.ts(170,5): error TS2365: Operator '+' cannot be applied to types 'E' and 'false'.
14
+
tests/cases/compiler/expr.ts(170,5): error TS2365: Operator '+' cannot be applied to types 'E' and 'boolean'.
15
15
tests/cases/compiler/expr.ts(172,5): error TS2365: Operator '+' cannot be applied to types 'E' and 'I'.
16
16
tests/cases/compiler/expr.ts(176,7): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
17
17
tests/cases/compiler/expr.ts(177,7): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
@@ -161,7 +161,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
161
161
!!! error TS2367: This condition will always return 'false' since the types 'number' and 'string' have no overlap.
162
162
n==b;
163
163
~~~~
164
-
!!! error TS2367: This condition will always return 'false' since the types 'number' and 'false' have no overlap.
164
+
!!! error TS2367: This condition will always return 'false' since the types 'number' and 'boolean' have no overlap.
165
165
n==i;
166
166
n==n;
167
167
n==e;
@@ -172,7 +172,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
172
172
!!! error TS2367: This condition will always return 'false' since the types 'string' and 'number' have no overlap.
173
173
s==b;
174
174
~~~~
175
-
!!! error TS2367: This condition will always return 'false' since the types 'string' and 'false' have no overlap.
175
+
!!! error TS2367: This condition will always return 'false' since the types 'string' and 'boolean' have no overlap.
176
176
s==i;
177
177
s==s;
178
178
s==e;
@@ -199,7 +199,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
199
199
!!! error TS2367: This condition will always return 'false' since the types 'E' and 'string' have no overlap.
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 TS2367: This condition will always return 'false' since the types 'E' and 'boolean' have no overlap.
203
203
e==a;
204
204
e==i;
205
205
e==e;
@@ -227,7 +227,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
227
227
n+s;
228
228
n+b;
229
229
~~~
230
-
!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'false'.
230
+
!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'.
231
231
n+i;
232
232
~~~
233
233
!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'I'.
@@ -254,7 +254,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
254
254
i+s;
255
255
i+b;
256
256
~~~
257
-
!!! error TS2365: Operator '+' cannot be applied to types 'I' and 'false'.
257
+
!!! error TS2365: Operator '+' cannot be applied to types 'I' and 'boolean'.
258
258
i+a;
259
259
i+i;
260
260
~~~
@@ -267,7 +267,7 @@ tests/cases/compiler/expr.ts(242,7): error TS2363: The right-hand side of an ari
267
267
e+s;
268
268
e+b;
269
269
~~~
270
-
!!! error TS2365: Operator '+' cannot be applied to types 'E' and 'false'.
270
+
!!! error TS2365: Operator '+' cannot be applied to types 'E' and 'boolean'.
0 commit comments