Skip to content

Commit 88961cd

Browse files
committed
Accept new baselines
1 parent 6c20533 commit 88961cd

18 files changed

+285
-285
lines changed

tests/baselines/reference/abstractPropertyNegative.errors.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tests/cases/compiler/abstractPropertyNegative.ts(13,7): error TS2515: Non-abstra
66
tests/cases/compiler/abstractPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited abstract member 'readonlyProp' from class 'B'.
77
tests/cases/compiler/abstractPropertyNegative.ts(15,5): error TS1244: Abstract methods can only appear within an abstract class.
88
tests/cases/compiler/abstractPropertyNegative.ts(16,37): error TS1005: '{' expected.
9-
tests/cases/compiler/abstractPropertyNegative.ts(19,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
9+
tests/cases/compiler/abstractPropertyNegative.ts(19,3): error TS2540: Cannot assign to 'ro' because it is a constant or a read-only property.
1010
tests/cases/compiler/abstractPropertyNegative.ts(24,7): error TS2415: Class 'WrongTypePropertyImpl' incorrectly extends base class 'WrongTypeProperty'.
1111
Types of property 'num' are incompatible.
1212
Type 'string' is not assignable to type 'number'.
@@ -58,8 +58,8 @@ tests/cases/compiler/abstractPropertyNegative.ts(41,18): error TS2676: Accessors
5858
}
5959
let c = new C();
6060
c.ro = "error: lhs of assignment can't be readonly";
61-
~~~~
62-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
61+
~~
62+
!!! error TS2540: Cannot assign to 'ro' because it is a constant or a read-only property.
6363

6464
abstract class WrongTypeProperty {
6565
abstract num: number;
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests/cases/compiler/assignToEnum.ts(2,1): error TS2539: Cannot assign to 'A' because it is not a variable.
22
tests/cases/compiler/assignToEnum.ts(3,1): error TS2539: Cannot assign to 'A' because it is not a variable.
3-
tests/cases/compiler/assignToEnum.ts(4,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
4-
tests/cases/compiler/assignToEnum.ts(5,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
3+
tests/cases/compiler/assignToEnum.ts(4,3): error TS2540: Cannot assign to 'foo' because it is a constant or a read-only property.
4+
tests/cases/compiler/assignToEnum.ts(5,3): error TS2540: Cannot assign to 'foo' because it is a constant or a read-only property.
55

66

77
==== tests/cases/compiler/assignToEnum.ts (4 errors) ====
@@ -13,10 +13,10 @@ tests/cases/compiler/assignToEnum.ts(5,1): error TS2450: Left-hand side of assig
1313
~
1414
!!! error TS2539: Cannot assign to 'A' because it is not a variable.
1515
A.foo = 1; // invalid LHS
16-
~~~~~
17-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
16+
~~~
17+
!!! error TS2540: Cannot assign to 'foo' because it is a constant or a read-only property.
1818
A.foo = A.bar; // invalid LHS
19-
~~~~~
20-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
19+
~~~
20+
!!! error TS2540: Cannot assign to 'foo' because it is a constant or a read-only property.
2121

2222

tests/baselines/reference/assignments.errors.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(11,1): error TS2304: Cannot find name 'M'.
22
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(14,1): error TS2539: Cannot assign to 'C' because it is not a variable.
33
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(17,1): error TS2539: Cannot assign to 'E' because it is not a variable.
4-
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(18,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
4+
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(18,3): error TS2540: Cannot assign to 'A' because it is a constant or a read-only property.
55
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(21,1): error TS2539: Cannot assign to 'fn' because it is not a variable.
66
tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(31,1): error TS2693: 'I' only refers to a type, but is being used as a value here.
77

@@ -31,8 +31,8 @@ tests/cases/conformance/expressions/valuesAndReferences/assignments.ts(31,1): er
3131
~
3232
!!! error TS2539: Cannot assign to 'E' because it is not a variable.
3333
E.A = null; // OK per spec, Error per implementation (509581)
34-
~~~
35-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
34+
~
35+
!!! error TS2540: Cannot assign to 'A' because it is a constant or a read-only property.
3636

3737
function fn() { }
3838
fn = null; // Should be error

tests/baselines/reference/constDeclarations-access3.errors.txt

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
tests/cases/compiler/constDeclarations-access3.ts(8,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
2-
tests/cases/compiler/constDeclarations-access3.ts(9,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
3-
tests/cases/compiler/constDeclarations-access3.ts(10,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
4-
tests/cases/compiler/constDeclarations-access3.ts(11,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
5-
tests/cases/compiler/constDeclarations-access3.ts(12,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
6-
tests/cases/compiler/constDeclarations-access3.ts(13,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
7-
tests/cases/compiler/constDeclarations-access3.ts(14,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
8-
tests/cases/compiler/constDeclarations-access3.ts(15,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
9-
tests/cases/compiler/constDeclarations-access3.ts(16,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
10-
tests/cases/compiler/constDeclarations-access3.ts(17,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
11-
tests/cases/compiler/constDeclarations-access3.ts(18,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
12-
tests/cases/compiler/constDeclarations-access3.ts(19,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
13-
tests/cases/compiler/constDeclarations-access3.ts(21,1): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
14-
tests/cases/compiler/constDeclarations-access3.ts(22,1): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
15-
tests/cases/compiler/constDeclarations-access3.ts(23,3): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
16-
tests/cases/compiler/constDeclarations-access3.ts(24,3): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
17-
tests/cases/compiler/constDeclarations-access3.ts(26,3): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
1+
tests/cases/compiler/constDeclarations-access3.ts(8,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
2+
tests/cases/compiler/constDeclarations-access3.ts(9,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
3+
tests/cases/compiler/constDeclarations-access3.ts(10,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
4+
tests/cases/compiler/constDeclarations-access3.ts(11,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
5+
tests/cases/compiler/constDeclarations-access3.ts(12,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
6+
tests/cases/compiler/constDeclarations-access3.ts(13,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
7+
tests/cases/compiler/constDeclarations-access3.ts(14,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
8+
tests/cases/compiler/constDeclarations-access3.ts(15,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
9+
tests/cases/compiler/constDeclarations-access3.ts(16,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
10+
tests/cases/compiler/constDeclarations-access3.ts(17,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
11+
tests/cases/compiler/constDeclarations-access3.ts(18,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
12+
tests/cases/compiler/constDeclarations-access3.ts(19,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
13+
tests/cases/compiler/constDeclarations-access3.ts(21,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
14+
tests/cases/compiler/constDeclarations-access3.ts(22,3): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
15+
tests/cases/compiler/constDeclarations-access3.ts(23,5): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
16+
tests/cases/compiler/constDeclarations-access3.ts(24,5): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
17+
tests/cases/compiler/constDeclarations-access3.ts(26,7): error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
1818
tests/cases/compiler/constDeclarations-access3.ts(28,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
1919

2020

@@ -27,58 +27,58 @@ tests/cases/compiler/constDeclarations-access3.ts(28,1): error TS2450: Left-hand
2727

2828
// Errors
2929
M.x = 1;
30-
~~~
31-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
30+
~
31+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
3232
M.x += 2;
33-
~~~
34-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
33+
~
34+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
3535
M.x -= 3;
36-
~~~
37-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
36+
~
37+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
3838
M.x *= 4;
39-
~~~
40-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
39+
~
40+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
4141
M.x /= 5;
42-
~~~
43-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
42+
~
43+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
4444
M.x %= 6;
45-
~~~
46-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
45+
~
46+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
4747
M.x <<= 7;
48-
~~~
49-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
48+
~
49+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
5050
M.x >>= 8;
51-
~~~
52-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
51+
~
52+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
5353
M.x >>>= 9;
54-
~~~
55-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
54+
~
55+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
5656
M.x &= 10;
57-
~~~
58-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
57+
~
58+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
5959
M.x |= 11;
60-
~~~
61-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
60+
~
61+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
6262
M.x ^= 12;
63-
~~~
64-
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
63+
~
64+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
6565

6666
M.x++;
67-
~~~
68-
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
67+
~
68+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
6969
M.x--;
70-
~~~
71-
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
70+
~
71+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
7272
++M.x;
73-
~~~
74-
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
73+
~
74+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
7575
--M.x;
76-
~~~
77-
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
76+
~
77+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
7878

7979
++((M.x));
80-
~~~~~~~
81-
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
80+
~
81+
!!! error TS2540: Cannot assign to 'x' because it is a constant or a read-only property.
8282

8383
M["x"] = 0;
8484
~~~~~~

0 commit comments

Comments
 (0)