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
+42-21Lines changed: 42 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,28 @@
1
1
tests/cases/compiler/bigintWithLib.ts(4,1): error TS2350: Only a void function can be called with the 'new' keyword.
2
2
tests/cases/compiler/bigintWithLib.ts(16,15): error TS2755: No overload matches this call.
3
+
Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
4
+
Argument of type 'number[]' is not assignable to parameter of type 'number'.
5
+
Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
6
+
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
7
+
Types of property '[Symbol.iterator]' are incompatible.
8
+
Type '() => IterableIterator<number>' is not assignable to type '() => Iterator<bigint>'.
9
+
Type 'IterableIterator<number>' is not assignable to type 'Iterator<bigint>'.
10
+
Types of property 'next' are incompatible.
11
+
Type '(value?: any) => IteratorResult<number>' is not assignable to type '(value?: any) => IteratorResult<bigint>'.
12
+
Type 'IteratorResult<number>' is not assignable to type 'IteratorResult<bigint>'.
13
+
Type 'number' is not assignable to type 'bigint'.
14
+
Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
15
+
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
16
+
Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
3
17
tests/cases/compiler/bigintWithLib.ts(21,13): error TS2540: Cannot assign to 'length' because it is a read-only property.
4
18
tests/cases/compiler/bigintWithLib.ts(28,16): error TS2755: No overload matches this call.
19
+
Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
20
+
Argument of type 'number[]' is not assignable to parameter of type 'number'.
21
+
Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
22
+
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
23
+
Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigUint64Array', gave the following error.
24
+
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
25
+
Type 'number[]' is not assignable to type 'SharedArrayBuffer'.
5
26
tests/cases/compiler/bigintWithLib.ts(33,13): error TS2540: Cannot assign to 'length' because it is a read-only property.
6
27
tests/cases/compiler/bigintWithLib.ts(40,25): error TS2345: Argument of type '-1' is not assignable to parameter of type 'bigint'.
7
28
tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '123' is not assignable to parameter of type 'bigint'.
@@ -28,20 +49,20 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
28
49
bigIntArray = new BigInt64Array([1, 2, 3]); // should error
29
50
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
51
!!! error TS2755: No overload matches this call.
31
-
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
32
-
Argument of type 'number[]' is not assignable to parameter of type 'number'.
33
-
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
34
-
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
35
-
Types of property '[Symbol.iterator]' are incompatible.
36
-
Type '() => IterableIterator<number>' is not assignable to type '() => Iterator<bigint>'.
37
-
Type 'IterableIterator<number>' is not assignable to type 'Iterator<bigint>'.
38
-
Types of property 'next' are incompatible.
39
-
Type '(value?: any) => IteratorResult<number>' is not assignable to type '(value?: any) => IteratorResult<bigint>'.
40
-
Type 'IteratorResult<number>' is not assignable to type 'IteratorResult<bigint>'.
41
-
Type 'number' is not assignable to type 'bigint'.
42
-
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
43
-
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
44
-
Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
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]
45
66
bigIntArray = new BigInt64Array(new ArrayBuffer(80));
46
67
bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8);
47
68
bigIntArray = new BigInt64Array(new ArrayBuffer(80), 8, 3);
@@ -58,13 +79,13 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
58
79
bigUintArray = new BigUint64Array([1, 2, 3]); // should error
59
80
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
81
!!! error TS2755: No overload matches this call.
61
-
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
62
-
Argument of type 'number[]' is not assignable to parameter of type 'number'.
63
-
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
64
-
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
65
-
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigUint64Array', gave the following error.
66
-
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
67
-
Type 'number[]' is not assignable to type 'SharedArrayBuffer'.
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'.
68
89
bigUintArray = new BigUint64Array(new ArrayBuffer(80));
69
90
bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8);
70
91
bigUintArray = new BigUint64Array(new ArrayBuffer(80), 8, 3);
0 commit comments