Skip to content

Commit e506378

Browse files
committed
Accepting new baselines
1 parent fac1bf6 commit e506378

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

tests/baselines/reference/externalModuleImmutableBindings.errors.txt

+37-1
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,89 @@
1+
tests/cases/compiler/f2.ts(7,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
2+
tests/cases/compiler/f2.ts(8,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
13
tests/cases/compiler/f2.ts(9,7): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
4+
tests/cases/compiler/f2.ts(12,1): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
5+
tests/cases/compiler/f2.ts(13,1): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
6+
tests/cases/compiler/f2.ts(17,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
7+
tests/cases/compiler/f2.ts(18,1): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
28
tests/cases/compiler/f2.ts(19,8): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
9+
tests/cases/compiler/f2.ts(22,1): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
10+
tests/cases/compiler/f2.ts(23,1): error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
311
tests/cases/compiler/f2.ts(27,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
12+
tests/cases/compiler/f2.ts(28,6): error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
413
tests/cases/compiler/f2.ts(29,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
14+
tests/cases/compiler/f2.ts(30,6): error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
515
tests/cases/compiler/f2.ts(31,12): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
616
tests/cases/compiler/f2.ts(32,12): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
717
tests/cases/compiler/f2.ts(36,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
18+
tests/cases/compiler/f2.ts(37,6): error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
819
tests/cases/compiler/f2.ts(38,6): error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
20+
tests/cases/compiler/f2.ts(39,6): error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
921
tests/cases/compiler/f2.ts(40,13): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
1022
tests/cases/compiler/f2.ts(41,13): error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
1123

1224

1325
==== tests/cases/compiler/f1.ts (0 errors) ====
1426
export var x = 1;
1527

16-
==== tests/cases/compiler/f2.ts (10 errors) ====
28+
==== tests/cases/compiler/f2.ts (22 errors) ====
1729

1830
// all mutations below are illegal and should be fixed
1931
import * as stuff from './f1';
2032

2133
var n = 'baz';
2234

2335
stuff.x = 0;
36+
~~~~~~~
37+
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
2438
stuff['x'] = 1;
39+
~~~~~~~~~~
40+
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
2541
stuff.blah = 2;
2642
~~~~
2743
!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
2844
stuff[n] = 3;
2945

3046
stuff.x++;
47+
~~~~~~~
48+
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
3149
stuff['x']++;
50+
~~~~~~~~~~
51+
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
3252
stuff['blah']++;
3353
stuff[n]++;
3454

3555
(stuff.x) = 0;
56+
~~~~~~~~~
57+
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
3658
(stuff['x']) = 1;
59+
~~~~~~~~~~~~
60+
!!! error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
3761
(stuff.blah) = 2;
3862
~~~~
3963
!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
4064
(stuff[n]) = 3;
4165

4266
(stuff.x)++;
67+
~~~~~~~~~
68+
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
4369
(stuff['x'])++;
70+
~~~~~~~~~~~~
71+
!!! error TS2449: The operand of an increment or decrement operator cannot be a constant or a read-only property.
4472
(stuff['blah'])++;
4573
(stuff[n])++;
4674

4775
for (stuff.x in []) {}
4876
~~~~~~~
4977
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
5078
for (stuff.x of []) {}
79+
~~~~~~~
80+
!!! error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
5181
for (stuff['x'] in []) {}
5282
~~~~~~~~~~
5383
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
5484
for (stuff['x'] of []) {}
85+
~~~~~~~~~~
86+
!!! error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
5587
for (stuff.blah in []) {}
5688
~~~~
5789
!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.
@@ -65,10 +97,14 @@ tests/cases/compiler/f2.ts(41,13): error TS2339: Property 'blah' does not exist
6597
~~~~~~~~~
6698
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
6799
for ((stuff.x) of []) {}
100+
~~~~~~~~~
101+
!!! error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
68102
for ((stuff['x']) in []) {}
69103
~~~~~~~~~~~~
70104
!!! error TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
71105
for ((stuff['x']) of []) {}
106+
~~~~~~~~~~~~
107+
!!! error TS2485: The left-hand side of a 'for...of' statement cannot be a constant or a read-only property.
72108
for ((stuff.blah) in []) {}
73109
~~~~
74110
!!! error TS2339: Property 'blah' does not exist on type 'typeof "tests/cases/compiler/f1"'.

0 commit comments

Comments
 (0)