Skip to content

Commit 550be9c

Browse files
committed
Accept new baselines
1 parent 5515dce commit 550be9c

File tree

43 files changed

+325
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+325
-325
lines changed
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
tests/cases/compiler/arithAssignTyping.ts(3,1): error TS2364: Invalid left-hand side of assignment expression.
2-
tests/cases/compiler/arithAssignTyping.ts(4,1): error TS2365: Operator '+=' cannot be applied to types 'typeof f' and '1'.
3-
tests/cases/compiler/arithAssignTyping.ts(5,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
4-
tests/cases/compiler/arithAssignTyping.ts(6,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
5-
tests/cases/compiler/arithAssignTyping.ts(7,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
6-
tests/cases/compiler/arithAssignTyping.ts(8,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
7-
tests/cases/compiler/arithAssignTyping.ts(9,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
8-
tests/cases/compiler/arithAssignTyping.ts(10,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
9-
tests/cases/compiler/arithAssignTyping.ts(11,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
10-
tests/cases/compiler/arithAssignTyping.ts(12,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
11-
tests/cases/compiler/arithAssignTyping.ts(13,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
12-
tests/cases/compiler/arithAssignTyping.ts(14,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
1+
tests/cases/compiler/arithAssignTyping.ts(3,1): error TS2539: Cannot assign to 'f' because it is not a variable.
2+
tests/cases/compiler/arithAssignTyping.ts(4,1): error TS2539: Cannot assign to 'f' because it is not a variable.
3+
tests/cases/compiler/arithAssignTyping.ts(5,1): error TS2539: Cannot assign to 'f' because it is not a variable.
4+
tests/cases/compiler/arithAssignTyping.ts(6,1): error TS2539: Cannot assign to 'f' because it is not a variable.
5+
tests/cases/compiler/arithAssignTyping.ts(7,1): error TS2539: Cannot assign to 'f' because it is not a variable.
6+
tests/cases/compiler/arithAssignTyping.ts(8,1): error TS2539: Cannot assign to 'f' because it is not a variable.
7+
tests/cases/compiler/arithAssignTyping.ts(9,1): error TS2539: Cannot assign to 'f' because it is not a variable.
8+
tests/cases/compiler/arithAssignTyping.ts(10,1): error TS2539: Cannot assign to 'f' because it is not a variable.
9+
tests/cases/compiler/arithAssignTyping.ts(11,1): error TS2539: Cannot assign to 'f' because it is not a variable.
10+
tests/cases/compiler/arithAssignTyping.ts(12,1): error TS2539: Cannot assign to 'f' because it is not a variable.
11+
tests/cases/compiler/arithAssignTyping.ts(13,1): error TS2539: Cannot assign to 'f' because it is not a variable.
12+
tests/cases/compiler/arithAssignTyping.ts(14,1): error TS2539: Cannot assign to 'f' because it is not a variable.
1313

1414

1515
==== tests/cases/compiler/arithAssignTyping.ts (12 errors) ====
1616
class f { }
1717

1818
f += ''; // error
1919
~
20-
!!! error TS2364: Invalid left-hand side of assignment expression.
20+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
2121
f += 1; // error
22-
~~~~~~
23-
!!! error TS2365: Operator '+=' cannot be applied to types 'typeof f' and '1'.
22+
~
23+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
2424
f -= 1; // error
2525
~
26-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
26+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
2727
f *= 1; // error
2828
~
29-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
29+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
3030
f /= 1; // error
3131
~
32-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
32+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
3333
f %= 1; // error
3434
~
35-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
35+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
3636
f &= 1; // error
3737
~
38-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
38+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
3939
f |= 1; // error
4040
~
41-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
41+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
4242
f <<= 1; // error
4343
~
44-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
44+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
4545
f >>= 1; // error
4646
~
47-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
47+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
4848
f >>>= 1; // error
4949
~
50-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
50+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.
5151
f ^= 1; // error
5252
~
53-
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
53+
!!! error TS2539: Cannot assign to 'f' because it is not a variable.

tests/baselines/reference/assignAnyToEveryType.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/types/any/assignAnyToEveryType.ts(41,1): error TS2364: Invalid left-hand side of assignment expression.
1+
tests/cases/conformance/types/any/assignAnyToEveryType.ts(41,1): error TS2539: Cannot assign to 'M' because it is not a variable.
22

33

44
==== tests/cases/conformance/types/any/assignAnyToEveryType.ts (1 errors) ====
@@ -44,7 +44,7 @@ tests/cases/conformance/types/any/assignAnyToEveryType.ts(41,1): error TS2364: I
4444

4545
M = x;
4646
~
47-
!!! error TS2364: Invalid left-hand side of assignment expression.
47+
!!! error TS2539: Cannot assign to 'M' because it is not a variable.
4848

4949
function k<T>(a: T) {
5050
a = x;

tests/baselines/reference/assignToEnum.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/compiler/assignToEnum.ts(2,1): error TS2364: Invalid left-hand side of assignment expression.
2-
tests/cases/compiler/assignToEnum.ts(3,1): error TS2364: Invalid left-hand side of assignment expression.
1+
tests/cases/compiler/assignToEnum.ts(2,1): error TS2539: Cannot assign to 'A' because it is not a variable.
2+
tests/cases/compiler/assignToEnum.ts(3,1): error TS2539: Cannot assign to 'A' because it is not a variable.
33
tests/cases/compiler/assignToEnum.ts(4,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
44
tests/cases/compiler/assignToEnum.ts(5,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
55

@@ -8,10 +8,10 @@ tests/cases/compiler/assignToEnum.ts(5,1): error TS2450: Left-hand side of assig
88
enum A { foo, bar }
99
A = undefined; // invalid LHS
1010
~
11-
!!! error TS2364: Invalid left-hand side of assignment expression.
11+
!!! error TS2539: Cannot assign to 'A' because it is not a variable.
1212
A = A.bar; // invalid LHS
1313
~
14-
!!! error TS2364: Invalid left-hand side of assignment expression.
14+
!!! error TS2539: Cannot assign to 'A' because it is not a variable.
1515
A.foo = 1; // invalid LHS
1616
~~~~~
1717
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.

tests/baselines/reference/assignToExistingClass.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/assignToExistingClass.ts(8,13): error TS2364: Invalid left-hand side of assignment expression.
1+
tests/cases/compiler/assignToExistingClass.ts(8,13): error TS2539: Cannot assign to 'Mocked' because it is not a variable.
22

33

44
==== tests/cases/compiler/assignToExistingClass.ts (1 errors) ====
@@ -11,7 +11,7 @@ tests/cases/compiler/assignToExistingClass.ts(8,13): error TS2364: Invalid left-
1111
willThrowError() {
1212
Mocked = Mocked || function () { // => Error: Invalid left-hand side of assignment expression.
1313
~~~~~~
14-
!!! error TS2364: Invalid left-hand side of assignment expression.
14+
!!! error TS2539: Cannot assign to 'Mocked' because it is not a variable.
1515
return { myProp: "test" };
1616
};
1717
}

tests/baselines/reference/assignmentLHSIsValue.errors.txt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
33
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(8,21): error TS2364: Invalid left-hand side of assignment expression.
44
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(11,18): error TS2364: Invalid left-hand side of assignment expression.
55
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(13,1): error TS2364: Invalid left-hand side of assignment expression.
6-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(17,1): error TS2364: Invalid left-hand side of assignment expression.
7-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(19,1): error TS2364: Invalid left-hand side of assignment expression.
8-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(22,1): error TS2364: Invalid left-hand side of assignment expression.
9-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(24,1): error TS2364: Invalid left-hand side of assignment expression.
6+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(17,1): error TS2539: Cannot assign to 'M' because it is not a variable.
7+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(19,1): error TS2539: Cannot assign to 'C' because it is not a variable.
8+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(22,1): error TS2539: Cannot assign to 'E' because it is not a variable.
9+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(24,1): error TS2539: Cannot assign to 'foo' because it is not a variable.
1010
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(27,1): error TS2364: Invalid left-hand side of assignment expression.
1111
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(28,1): error TS2364: Invalid left-hand side of assignment expression.
1212
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(29,1): error TS2364: Invalid left-hand side of assignment expression.
@@ -24,10 +24,10 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(5
2424
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(51,11): error TS1005: ';' expected.
2525
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(54,1): error TS2364: Invalid left-hand side of assignment expression.
2626
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(57,1): error TS2364: Invalid left-hand side of assignment expression.
27-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(58,1): error TS2364: Invalid left-hand side of assignment expression.
28-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(59,1): error TS2364: Invalid left-hand side of assignment expression.
29-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(60,1): error TS2364: Invalid left-hand side of assignment expression.
30-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(61,1): error TS2364: Invalid left-hand side of assignment expression.
27+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(58,2): error TS2539: Cannot assign to 'M' because it is not a variable.
28+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(59,2): error TS2539: Cannot assign to 'C' because it is not a variable.
29+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(60,2): error TS2539: Cannot assign to 'E' because it is not a variable.
30+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(61,2): error TS2539: Cannot assign to 'foo' because it is not a variable.
3131
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(62,1): error TS2364: Invalid left-hand side of assignment expression.
3232
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(63,1): error TS2364: Invalid left-hand side of assignment expression.
3333
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(64,1): error TS2364: Invalid left-hand side of assignment expression.
@@ -68,20 +68,20 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
6868
module M { export var a; }
6969
M = value;
7070
~
71-
!!! error TS2364: Invalid left-hand side of assignment expression.
71+
!!! error TS2539: Cannot assign to 'M' because it is not a variable.
7272

7373
C = value;
7474
~
75-
!!! error TS2364: Invalid left-hand side of assignment expression.
75+
!!! error TS2539: Cannot assign to 'C' because it is not a variable.
7676

7777
enum E { }
7878
E = value;
7979
~
80-
!!! error TS2364: Invalid left-hand side of assignment expression.
80+
!!! error TS2539: Cannot assign to 'E' because it is not a variable.
8181

8282
foo = value;
8383
~~~
84-
!!! error TS2364: Invalid left-hand side of assignment expression.
84+
!!! error TS2539: Cannot assign to 'foo' because it is not a variable.
8585

8686
// literals
8787
null = value;
@@ -150,17 +150,17 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
150150
~~~~~~
151151
!!! error TS2364: Invalid left-hand side of assignment expression.
152152
(M) = value;
153-
~~~
154-
!!! error TS2364: Invalid left-hand side of assignment expression.
153+
~
154+
!!! error TS2539: Cannot assign to 'M' because it is not a variable.
155155
(C) = value;
156-
~~~
157-
!!! error TS2364: Invalid left-hand side of assignment expression.
156+
~
157+
!!! error TS2539: Cannot assign to 'C' because it is not a variable.
158158
(E) = value;
159-
~~~
160-
!!! error TS2364: Invalid left-hand side of assignment expression.
159+
~
160+
!!! error TS2539: Cannot assign to 'E' because it is not a variable.
161161
(foo) = value;
162-
~~~~~
163-
!!! error TS2364: Invalid left-hand side of assignment expression.
162+
~~~
163+
!!! error TS2539: Cannot assign to 'foo' because it is not a variable.
164164
(null) = value;
165165
~~~~~~
166166
!!! error TS2364: Invalid left-hand side of assignment expression.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
tests/cases/compiler/assignmentToFunction.ts(2,1): error TS2364: Invalid left-hand side of assignment expression.
2-
tests/cases/compiler/assignmentToFunction.ts(8,9): error TS2364: Invalid left-hand side of assignment expression.
1+
tests/cases/compiler/assignmentToFunction.ts(2,1): error TS2539: Cannot assign to 'fn' because it is not a variable.
2+
tests/cases/compiler/assignmentToFunction.ts(8,9): error TS2539: Cannot assign to 'bar' because it is not a variable.
33

44

55
==== tests/cases/compiler/assignmentToFunction.ts (2 errors) ====
66
function fn() { }
77
fn = () => 3;
88
~~
9-
!!! error TS2364: Invalid left-hand side of assignment expression.
9+
!!! error TS2539: Cannot assign to 'fn' because it is not a variable.
1010

1111
module foo {
1212
function xyz() {
1313
function bar() {
1414
}
1515
bar = null;
1616
~~~
17-
!!! error TS2364: Invalid left-hand side of assignment expression.
17+
!!! error TS2539: Cannot assign to 'bar' because it is not a variable.
1818
}
1919
}

0 commit comments

Comments
 (0)