Skip to content

Commit 6f97fb5

Browse files
committed
Fix error numbers
1 parent 28e9ec4 commit 6f97fb5

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

tests/baselines/reference/bigintWithoutLib.errors.txt

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ tests/cases/compiler/bigintWithoutLib.ts(4,25): error TS2304: Cannot find name '
22
tests/cases/compiler/bigintWithoutLib.ts(5,13): error TS2304: Cannot find name 'BigInt'.
33
tests/cases/compiler/bigintWithoutLib.ts(6,5): error TS2304: Cannot find name 'BigInt'.
44
tests/cases/compiler/bigintWithoutLib.ts(7,13): error TS2304: Cannot find name 'BigInt'.
5-
tests/cases/compiler/bigintWithoutLib.ts(7,30): error TS2736: BigInt literals are not available when targetting lower than ESNext.
5+
tests/cases/compiler/bigintWithoutLib.ts(7,30): error TS2737: BigInt literals are not available when targetting lower than ESNext.
66
tests/cases/compiler/bigintWithoutLib.ts(8,13): error TS2304: Cannot find name 'BigInt'.
7-
tests/cases/compiler/bigintWithoutLib.ts(8,31): error TS2736: BigInt literals are not available when targetting lower than ESNext.
7+
tests/cases/compiler/bigintWithoutLib.ts(8,31): error TS2737: BigInt literals are not available when targetting lower than ESNext.
88
tests/cases/compiler/bigintWithoutLib.ts(9,1): error TS2322: Type 'Object' is not assignable to type 'bigint'.
99
tests/cases/compiler/bigintWithoutLib.ts(11,13): error TS2554: Expected 0 arguments, but got 1.
1010
tests/cases/compiler/bigintWithoutLib.ts(15,18): error TS2304: Cannot find name 'BigInt64Array'.
1111
tests/cases/compiler/bigintWithoutLib.ts(15,38): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'?
1212
tests/cases/compiler/bigintWithoutLib.ts(16,19): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'?
1313
tests/cases/compiler/bigintWithoutLib.ts(17,19): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'?
14-
tests/cases/compiler/bigintWithoutLib.ts(17,34): error TS2736: BigInt literals are not available when targetting lower than ESNext.
15-
tests/cases/compiler/bigintWithoutLib.ts(17,38): error TS2736: BigInt literals are not available when targetting lower than ESNext.
16-
tests/cases/compiler/bigintWithoutLib.ts(17,42): error TS2736: BigInt literals are not available when targetting lower than ESNext.
14+
tests/cases/compiler/bigintWithoutLib.ts(17,34): error TS2737: BigInt literals are not available when targetting lower than ESNext.
15+
tests/cases/compiler/bigintWithoutLib.ts(17,38): error TS2737: BigInt literals are not available when targetting lower than ESNext.
16+
tests/cases/compiler/bigintWithoutLib.ts(17,42): error TS2737: BigInt literals are not available when targetting lower than ESNext.
1717
tests/cases/compiler/bigintWithoutLib.ts(18,19): error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'?
1818
tests/cases/compiler/bigintWithoutLib.ts(19,19): error TS2304: Cannot find name 'BigInt64Array'.
1919
tests/cases/compiler/bigintWithoutLib.ts(20,19): error TS2304: Cannot find name 'BigInt64Array'.
@@ -22,22 +22,22 @@ tests/cases/compiler/bigintWithoutLib.ts(27,19): error TS2304: Cannot find name
2222
tests/cases/compiler/bigintWithoutLib.ts(27,40): error TS2304: Cannot find name 'BigUint64Array'.
2323
tests/cases/compiler/bigintWithoutLib.ts(28,20): error TS2304: Cannot find name 'BigUint64Array'.
2424
tests/cases/compiler/bigintWithoutLib.ts(29,20): error TS2304: Cannot find name 'BigUint64Array'.
25-
tests/cases/compiler/bigintWithoutLib.ts(29,36): error TS2736: BigInt literals are not available when targetting lower than ESNext.
26-
tests/cases/compiler/bigintWithoutLib.ts(29,40): error TS2736: BigInt literals are not available when targetting lower than ESNext.
27-
tests/cases/compiler/bigintWithoutLib.ts(29,44): error TS2736: BigInt literals are not available when targetting lower than ESNext.
25+
tests/cases/compiler/bigintWithoutLib.ts(29,36): error TS2737: BigInt literals are not available when targetting lower than ESNext.
26+
tests/cases/compiler/bigintWithoutLib.ts(29,40): error TS2737: BigInt literals are not available when targetting lower than ESNext.
27+
tests/cases/compiler/bigintWithoutLib.ts(29,44): error TS2737: BigInt literals are not available when targetting lower than ESNext.
2828
tests/cases/compiler/bigintWithoutLib.ts(30,20): error TS2304: Cannot find name 'BigUint64Array'.
2929
tests/cases/compiler/bigintWithoutLib.ts(31,20): error TS2304: Cannot find name 'BigUint64Array'.
3030
tests/cases/compiler/bigintWithoutLib.ts(32,20): error TS2304: Cannot find name 'BigUint64Array'.
3131
tests/cases/compiler/bigintWithoutLib.ts(33,20): error TS2304: Cannot find name 'BigUint64Array'.
3232
tests/cases/compiler/bigintWithoutLib.ts(40,10): error TS2339: Property 'setBigInt64' does not exist on type 'DataView'.
33-
tests/cases/compiler/bigintWithoutLib.ts(40,26): error TS2736: BigInt literals are not available when targetting lower than ESNext.
33+
tests/cases/compiler/bigintWithoutLib.ts(40,26): error TS2737: BigInt literals are not available when targetting lower than ESNext.
3434
tests/cases/compiler/bigintWithoutLib.ts(41,10): error TS2339: Property 'setBigInt64' does not exist on type 'DataView'.
35-
tests/cases/compiler/bigintWithoutLib.ts(41,26): error TS2736: BigInt literals are not available when targetting lower than ESNext.
35+
tests/cases/compiler/bigintWithoutLib.ts(41,26): error TS2737: BigInt literals are not available when targetting lower than ESNext.
3636
tests/cases/compiler/bigintWithoutLib.ts(42,10): error TS2339: Property 'setBigInt64' does not exist on type 'DataView'.
3737
tests/cases/compiler/bigintWithoutLib.ts(43,10): error TS2339: Property 'setBigUint64' does not exist on type 'DataView'.
38-
tests/cases/compiler/bigintWithoutLib.ts(43,26): error TS2736: BigInt literals are not available when targetting lower than ESNext.
38+
tests/cases/compiler/bigintWithoutLib.ts(43,26): error TS2737: BigInt literals are not available when targetting lower than ESNext.
3939
tests/cases/compiler/bigintWithoutLib.ts(44,10): error TS2339: Property 'setBigUint64' does not exist on type 'DataView'.
40-
tests/cases/compiler/bigintWithoutLib.ts(44,26): error TS2736: BigInt literals are not available when targetting lower than ESNext.
40+
tests/cases/compiler/bigintWithoutLib.ts(44,26): error TS2737: BigInt literals are not available when targetting lower than ESNext.
4141
tests/cases/compiler/bigintWithoutLib.ts(45,10): error TS2339: Property 'setBigUint64' does not exist on type 'DataView'.
4242
tests/cases/compiler/bigintWithoutLib.ts(46,22): error TS2339: Property 'getBigInt64' does not exist on type 'DataView'.
4343
tests/cases/compiler/bigintWithoutLib.ts(47,22): error TS2339: Property 'getBigInt64' does not exist on type 'DataView'.
@@ -62,12 +62,12 @@ tests/cases/compiler/bigintWithoutLib.ts(49,22): error TS2339: Property 'getBigU
6262
~~~~~~
6363
!!! error TS2304: Cannot find name 'BigInt'.
6464
~~~~~~~
65-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
65+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
6666
bigintVal = BigInt.asUintN(8, 0xFFFFn);
6767
~~~~~~
6868
!!! error TS2304: Cannot find name 'BigInt'.
6969
~~~~~~~
70-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
70+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
7171
bigintVal = bigintVal.valueOf(); // should error - bigintVal inferred as {}
7272
~~~~~~~~~
7373
!!! error TS2322: Type 'Object' is not assignable to type 'bigint'.
@@ -93,11 +93,11 @@ tests/cases/compiler/bigintWithoutLib.ts(49,22): error TS2339: Property 'getBigU
9393
!!! error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'?
9494
!!! related TS2728 tests/cases/compiler/bigintWithoutLib.ts:15:5: 'bigIntArray' is declared here.
9595
~~
96-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
96+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
9797
~~
98-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
98+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
9999
~~
100-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
100+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
101101
bigIntArray = new BigInt64Array([1, 2, 3]);
102102
~~~~~~~~~~~~~
103103
!!! error TS2552: Cannot find name 'BigInt64Array'. Did you mean 'bigIntArray'?
@@ -128,11 +128,11 @@ tests/cases/compiler/bigintWithoutLib.ts(49,22): error TS2339: Property 'getBigU
128128
~~~~~~~~~~~~~~
129129
!!! error TS2304: Cannot find name 'BigUint64Array'.
130130
~~
131-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
131+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
132132
~~
133-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
133+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
134134
~~
135-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
135+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
136136
bigUintArray = new BigUint64Array([1, 2, 3]);
137137
~~~~~~~~~~~~~~
138138
!!! error TS2304: Cannot find name 'BigUint64Array'.
@@ -155,25 +155,25 @@ tests/cases/compiler/bigintWithoutLib.ts(49,22): error TS2339: Property 'getBigU
155155
~~~~~~~~~~~
156156
!!! error TS2339: Property 'setBigInt64' does not exist on type 'DataView'.
157157
~~
158-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
158+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
159159
dataView.setBigInt64(1, -1n, true);
160160
~~~~~~~~~~~
161161
!!! error TS2339: Property 'setBigInt64' does not exist on type 'DataView'.
162162
~~
163-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
163+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
164164
dataView.setBigInt64(1, -1);
165165
~~~~~~~~~~~
166166
!!! error TS2339: Property 'setBigInt64' does not exist on type 'DataView'.
167167
dataView.setBigUint64(2, 123n);
168168
~~~~~~~~~~~~
169169
!!! error TS2339: Property 'setBigUint64' does not exist on type 'DataView'.
170170
~~~~
171-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
171+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
172172
dataView.setBigUint64(2, 123n, true);
173173
~~~~~~~~~~~~
174174
!!! error TS2339: Property 'setBigUint64' does not exist on type 'DataView'.
175175
~~~~
176-
!!! error TS2736: BigInt literals are not available when targetting lower than ESNext.
176+
!!! error TS2737: BigInt literals are not available when targetting lower than ESNext.
177177
dataView.setBigUint64(2, 123);
178178
~~~~~~~~~~~~
179179
!!! error TS2339: Property 'setBigUint64' does not exist on type 'DataView'.

tests/baselines/reference/numberVsBigIntOperations.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tests/cases/compiler/numberVsBigIntOperations.ts(25,34): error TS2365: Operator
4646
tests/cases/compiler/numberVsBigIntOperations.ts(25,43): error TS2365: Operator '>>' cannot be applied to types '1n' and '2'.
4747
tests/cases/compiler/numberVsBigIntOperations.ts(38,1): error TS2365: Operator '>>>=' cannot be applied to types 'bigint' and '1n'.
4848
tests/cases/compiler/numberVsBigIntOperations.ts(39,10): error TS2365: Operator '>>>' cannot be applied to types 'bigint' and '1n'.
49-
tests/cases/compiler/numberVsBigIntOperations.ts(40,8): error TS2735: Operator '+' cannot be applied to type 'bigint'.
49+
tests/cases/compiler/numberVsBigIntOperations.ts(40,8): error TS2736: Operator '+' cannot be applied to type 'bigint'.
5050
tests/cases/compiler/numberVsBigIntOperations.ts(50,10): error TS2367: This condition will always return 'false' since the types 'bigint' and 'number' have no overlap.
5151
tests/cases/compiler/numberVsBigIntOperations.ts(51,10): error TS2367: This condition will always return 'true' since the types 'bigint' and 'number' have no overlap.
5252
tests/cases/compiler/numberVsBigIntOperations.ts(52,10): error TS2367: This condition will always return 'false' since the types 'bigint' and 'number' have no overlap.
@@ -59,7 +59,7 @@ tests/cases/compiler/numberVsBigIntOperations.ts(57,11): error TS2365: Operator
5959
tests/cases/compiler/numberVsBigIntOperations.ts(57,17): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
6060
tests/cases/compiler/numberVsBigIntOperations.ts(60,1): error TS2365: Operator '+' cannot be applied to types 'number | bigint' and 'number | bigint'.
6161
tests/cases/compiler/numberVsBigIntOperations.ts(61,1): error TS2365: Operator '<<' cannot be applied to types 'number | bigint' and 'number | bigint'.
62-
tests/cases/compiler/numberVsBigIntOperations.ts(70,2): error TS2735: Operator '+' cannot be applied to type 'number | bigint'.
62+
tests/cases/compiler/numberVsBigIntOperations.ts(70,2): error TS2736: Operator '+' cannot be applied to type 'number | bigint'.
6363
tests/cases/compiler/numberVsBigIntOperations.ts(86,7): error TS1155: 'const' declarations must be initialized.
6464
tests/cases/compiler/numberVsBigIntOperations.ts(93,7): error TS1155: 'const' declarations must be initialized.
6565

@@ -202,7 +202,7 @@ tests/cases/compiler/numberVsBigIntOperations.ts(93,7): error TS1155: 'const' de
202202
!!! error TS2365: Operator '>>>' cannot be applied to types 'bigint' and '1n'.
203203
num = +bigInt; num = +num; num = +"3";
204204
~~~~~~
205-
!!! error TS2735: Operator '+' cannot be applied to type 'bigint'.
205+
!!! error TS2736: Operator '+' cannot be applied to type 'bigint'.
206206

207207
// Comparisons can be mixed
208208
let result: boolean;
@@ -258,7 +258,7 @@ tests/cases/compiler/numberVsBigIntOperations.ts(93,7): error TS1155: 'const' de
258258
}
259259
+bigIntOrNumber; // should error, result in number
260260
~~~~~~~~~~~~~~
261-
!!! error TS2735: Operator '+' cannot be applied to type 'number | bigint'.
261+
!!! error TS2736: Operator '+' cannot be applied to type 'number | bigint'.
262262
~bigIntOrNumber; // should infer number | bigint
263263
bigIntOrNumber++; // should infer number | bigint
264264
++bigIntOrNumber; // should infer number | bigint

tests/baselines/reference/parseBigInt.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/compiler/parseBigInt.ts(51,20): error TS2735: Operator '+' cannot be applied to type '123n'.
2-
tests/cases/compiler/parseBigInt.ts(52,23): error TS2735: Operator '+' cannot be applied to type '291n'.
1+
tests/cases/compiler/parseBigInt.ts(51,20): error TS2736: Operator '+' cannot be applied to type '123n'.
2+
tests/cases/compiler/parseBigInt.ts(52,23): error TS2736: Operator '+' cannot be applied to type '291n'.
33
tests/cases/compiler/parseBigInt.ts(56,25): error TS1005: ',' expected.
44
tests/cases/compiler/parseBigInt.ts(57,25): error TS1005: ',' expected.
55
tests/cases/compiler/parseBigInt.ts(58,22): error TS1005: ',' expected.
@@ -70,10 +70,10 @@ tests/cases/compiler/parseBigInt.ts(70,72): error TS2345: Argument of type '3' i
7070
// Plus not allowed on literals
7171
const unaryPlus = +123n;
7272
~~~~
73-
!!! error TS2735: Operator '+' cannot be applied to type '123n'.
73+
!!! error TS2736: Operator '+' cannot be applied to type '123n'.
7474
const unaryPlusHex = +0x123n;
7575
~~~~~~
76-
!!! error TS2735: Operator '+' cannot be applied to type '291n'.
76+
!!! error TS2736: Operator '+' cannot be applied to type '291n'.
7777

7878
// Parsing errors
7979
// In separate blocks because they each declare an "n" variable

0 commit comments

Comments
 (0)