Skip to content

Commit 34c4047

Browse files
committed
Update baselines with new error numbers
1 parent 71276a2 commit 34c4047

File tree

36 files changed

+628
-628
lines changed

36 files changed

+628
-628
lines changed

tests/baselines/reference/bigintWithLib.errors.txt

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/bigintWithLib.ts(4,1): error TS2350: Only a void function can be called with the 'new' keyword.
2-
tests/cases/compiler/bigintWithLib.ts(16,15): error TS2755: No overload matches this call.
2+
tests/cases/compiler/bigintWithLib.ts(16,15): error TS2763: No overload matches this call.
33
Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
44
Argument of type 'number[]' is not assignable to parameter of type 'number'.
55
Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
@@ -15,7 +15,7 @@ tests/cases/compiler/bigintWithLib.ts(16,15): error TS2755: No overload matches
1515
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
1616
Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
1717
tests/cases/compiler/bigintWithLib.ts(21,13): error TS2540: Cannot assign to 'length' because it is a read-only property.
18-
tests/cases/compiler/bigintWithLib.ts(28,16): error TS2755: No overload matches this call.
18+
tests/cases/compiler/bigintWithLib.ts(28,16): error TS2763: No overload matches this call.
1919
Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
2020
Argument of type 'number[]' is not assignable to parameter of type 'number'.
2121
Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
@@ -48,21 +48,21 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
4848
bigIntArray = new BigInt64Array([1n, 2n, 3n]);
4949
bigIntArray = new BigInt64Array([1, 2, 3]); // should error
5050
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51-
!!! error TS2755: No overload matches this call.
52-
!!! error TS2755: Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
53-
!!! error TS2755: Argument of type 'number[]' is not assignable to parameter of type 'number'.
54-
!!! error TS2755: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
55-
!!! error TS2755: Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
56-
!!! error TS2755: Types of property '[Symbol.iterator]' are incompatible.
57-
!!! error TS2755: Type '() => IterableIterator<number>' is not assignable to type '() => Iterator<bigint>'.
58-
!!! error TS2755: Type 'IterableIterator<number>' is not assignable to type 'Iterator<bigint>'.
59-
!!! error TS2755: Types of property 'next' are incompatible.
60-
!!! error TS2755: Type '(value?: any) => IteratorResult<number>' is not assignable to type '(value?: any) => IteratorResult<bigint>'.
61-
!!! error TS2755: Type 'IteratorResult<number>' is not assignable to type 'IteratorResult<bigint>'.
62-
!!! error TS2755: Type 'number' is not assignable to type 'bigint'.
63-
!!! error TS2755: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
64-
!!! error TS2755: Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
65-
!!! error TS2755: Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
51+
!!! error TS2763: No overload matches this call.
52+
!!! error TS2763: Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
53+
!!! error TS2763: Argument of type 'number[]' is not assignable to parameter of type 'number'.
54+
!!! error TS2763: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
55+
!!! error TS2763: Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
56+
!!! error TS2763: Types of property '[Symbol.iterator]' are incompatible.
57+
!!! error TS2763: Type '() => IterableIterator<number>' is not assignable to type '() => Iterator<bigint>'.
58+
!!! error TS2763: Type 'IterableIterator<number>' is not assignable to type 'Iterator<bigint>'.
59+
!!! error TS2763: Types of property 'next' are incompatible.
60+
!!! error TS2763: Type '(value?: any) => IteratorResult<number>' is not assignable to type '(value?: any) => IteratorResult<bigint>'.
61+
!!! error TS2763: Type 'IteratorResult<number>' is not assignable to type 'IteratorResult<bigint>'.
62+
!!! error TS2763: Type 'number' is not assignable to type 'bigint'.
63+
!!! error TS2763: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
64+
!!! error TS2763: Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
65+
!!! error TS2763: Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
6666
bigIntArray = new BigInt64Array(new ArrayBuffer(80));
6767
bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8);
6868
bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3);
@@ -78,14 +78,14 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
7878
bigUintArray = new BigUint64Array([1n, 2n, 3n]);
7979
bigUintArray = new BigUint64Array([1, 2, 3]); // should error
8080
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81-
!!! error TS2755: No overload matches this call.
82-
!!! error TS2755: Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
83-
!!! error TS2755: Argument of type 'number[]' is not assignable to parameter of type 'number'.
84-
!!! error TS2755: Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
85-
!!! error TS2755: Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
86-
!!! error TS2755: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigUint64Array', gave the following error.
87-
!!! error TS2755: Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
88-
!!! error TS2755: Type 'number[]' is not assignable to type 'SharedArrayBuffer'.
81+
!!! error TS2763: No overload matches this call.
82+
!!! error TS2763: Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
83+
!!! error TS2763: Argument of type 'number[]' is not assignable to parameter of type 'number'.
84+
!!! error TS2763: Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
85+
!!! error TS2763: Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
86+
!!! error TS2763: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigUint64Array', gave the following error.
87+
!!! error TS2763: Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
88+
!!! error TS2763: Type 'number[]' is not assignable to type 'SharedArrayBuffer'.
8989
bigUintArray = new BigUint64Array(new ArrayBuffer(80));
9090
bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8);
9191
bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3);

tests/baselines/reference/constructorOverloads1.errors.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ tests/cases/compiler/constructorOverloads1.ts(2,5): error TS2392: Multiple const
22
tests/cases/compiler/constructorOverloads1.ts(3,5): error TS2392: Multiple constructor implementations are not allowed.
33
tests/cases/compiler/constructorOverloads1.ts(4,5): error TS2392: Multiple constructor implementations are not allowed.
44
tests/cases/compiler/constructorOverloads1.ts(7,5): error TS2392: Multiple constructor implementations are not allowed.
5-
tests/cases/compiler/constructorOverloads1.ts(16,10): error TS2755: No overload matches this call.
5+
tests/cases/compiler/constructorOverloads1.ts(16,10): error TS2763: No overload matches this call.
66
Overload 1 of 2, '(s: string): Foo', gave the following error.
77
Argument of type 'Foo' is not assignable to parameter of type 'string'.
88
Overload 2 of 2, '(n: number): Foo', gave the following error.
99
Argument of type 'Foo' is not assignable to parameter of type 'number'.
10-
tests/cases/compiler/constructorOverloads1.ts(17,10): error TS2755: No overload matches this call.
10+
tests/cases/compiler/constructorOverloads1.ts(17,10): error TS2763: No overload matches this call.
1111
Overload 1 of 2, '(s: string): Foo', gave the following error.
1212
Argument of type 'any[]' is not assignable to parameter of type 'string'.
1313
Overload 2 of 2, '(n: number): Foo', gave the following error.
@@ -44,18 +44,18 @@ tests/cases/compiler/constructorOverloads1.ts(17,10): error TS2755: No overload
4444
var f2 = new Foo(0);
4545
var f3 = new Foo(f1);
4646
~~~~~~~~~~~
47-
!!! error TS2755: No overload matches this call.
48-
!!! error TS2755: Overload 1 of 2, '(s: string): Foo', gave the following error.
49-
!!! error TS2755: Argument of type 'Foo' is not assignable to parameter of type 'string'.
50-
!!! error TS2755: Overload 2 of 2, '(n: number): Foo', gave the following error.
51-
!!! error TS2755: Argument of type 'Foo' is not assignable to parameter of type 'number'.
47+
!!! error TS2763: No overload matches this call.
48+
!!! error TS2763: Overload 1 of 2, '(s: string): Foo', gave the following error.
49+
!!! error TS2763: Argument of type 'Foo' is not assignable to parameter of type 'string'.
50+
!!! error TS2763: Overload 2 of 2, '(n: number): Foo', gave the following error.
51+
!!! error TS2763: Argument of type 'Foo' is not assignable to parameter of type 'number'.
5252
var f4 = new Foo([f1,f2,f3]);
5353
~~~~~~~~~~~~~~~~~~~
54-
!!! error TS2755: No overload matches this call.
55-
!!! error TS2755: Overload 1 of 2, '(s: string): Foo', gave the following error.
56-
!!! error TS2755: Argument of type 'any[]' is not assignable to parameter of type 'string'.
57-
!!! error TS2755: Overload 2 of 2, '(n: number): Foo', gave the following error.
58-
!!! error TS2755: Argument of type 'any[]' is not assignable to parameter of type 'number'.
54+
!!! error TS2763: No overload matches this call.
55+
!!! error TS2763: Overload 1 of 2, '(s: string): Foo', gave the following error.
56+
!!! error TS2763: Argument of type 'any[]' is not assignable to parameter of type 'string'.
57+
!!! error TS2763: Overload 2 of 2, '(n: number): Foo', gave the following error.
58+
!!! error TS2763: Argument of type 'any[]' is not assignable to parameter of type 'number'.
5959

6060
f1.bar1();
6161
f1.bar2();

0 commit comments

Comments
 (0)