You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/bigintWithLib.errors.txt
+25-25Lines changed: 25 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
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.
3
3
Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
4
4
Argument of type 'number[]' is not assignable to parameter of type 'number'.
5
5
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
15
15
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
16
16
Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
17
17
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.
19
19
Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
20
20
Argument of type 'number[]' is not assignable to parameter of type 'number'.
21
21
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
48
48
bigIntArray = new BigInt64Array([1n, 2n, 3n]);
49
49
bigIntArray = new BigInt64Array([1, 2, 3]); // should error
50
50
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]
66
66
bigIntArray = new BigInt64Array(new ArrayBuffer(80));
67
67
bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8);
68
68
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
78
78
bigUintArray = new BigUint64Array([1n, 2n, 3n]);
79
79
bigUintArray = new BigUint64Array([1, 2, 3]); // should error
80
80
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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'.
89
89
bigUintArray = new BigUint64Array(new ArrayBuffer(80));
90
90
bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8);
91
91
bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3);
0 commit comments