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
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
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 suitable overload for this call.
2
+
tests/cases/compiler/bigintWithLib.ts(16,15): error TS2755: No overload matches this call.
3
3
tests/cases/compiler/bigintWithLib.ts(21,13): error TS2540: Cannot assign to 'length' because it is a read-only property.
4
-
tests/cases/compiler/bigintWithLib.ts(28,16): error TS2755: No suitable overload for this call.
4
+
tests/cases/compiler/bigintWithLib.ts(28,16): error TS2755: No overload matches this call.
5
5
tests/cases/compiler/bigintWithLib.ts(33,13): error TS2540: Cannot assign to 'length' because it is a read-only property.
6
6
tests/cases/compiler/bigintWithLib.ts(40,25): error TS2345: Argument of type '-1' is not assignable to parameter of type 'bigint'.
7
7
tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '123' is not assignable to parameter of type 'bigint'.
@@ -27,10 +27,10 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
27
27
bigIntArray = new BigInt64Array([1n, 2n, 3n]);
28
28
bigIntArray = new BigInt64Array([1, 2, 3]); // should error
29
29
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
-
!!! error TS2755: No suitable overload for this call.
31
-
!!! related TS2757 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 1 of 3, '(length?: number): BigInt64Array', gave the following error.
30
+
!!! 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
32
Argument of type 'number[]' is not assignable to parameter of type 'number'.
33
-
!!! related TS2757 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
33
+
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
34
34
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
35
35
Types of property '[Symbol.iterator]' are incompatible.
36
36
Type '() => IterableIterator<number>' is not assignable to type '() => Iterator<bigint>'.
@@ -39,7 +39,7 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
39
39
Type '(value?: any) => IteratorResult<number>' is not assignable to type '(value?: any) => IteratorResult<bigint>'.
40
40
Type 'IteratorResult<number>' is not assignable to type 'IteratorResult<bigint>'.
41
41
Type 'number' is not assignable to type 'bigint'.
42
-
!!! related TS2757 tests/cases/compiler/bigintWithLib.ts:16:33: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
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
43
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
44
44
Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
45
45
bigIntArray = new BigInt64Array(new ArrayBuffer(80));
@@ -57,12 +57,12 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
57
57
bigUintArray = new BigUint64Array([1n, 2n, 3n]);
58
58
bigUintArray = new BigUint64Array([1, 2, 3]); // should error
59
59
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
-
!!! error TS2755: No suitable overload for this call.
61
-
!!! related TS2757 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 1 of 3, '(length?: number): BigUint64Array', gave the following error.
60
+
!!! 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
62
Argument of type 'number[]' is not assignable to parameter of type 'number'.
63
-
!!! related TS2757 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
63
+
!!! related TS2760 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 2 of 3, '(array: Iterable<bigint>): BigUint64Array', gave the following error.
64
64
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
65
-
!!! related TS2757 tests/cases/compiler/bigintWithLib.ts:28:35: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigUint64Array', gave the following error.
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
66
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
67
67
Type 'number[]' is not assignable to type 'SharedArrayBuffer'.
68
68
bigUintArray = new BigUint64Array(new ArrayBuffer(80));
!!! error TS2755: No suitable overload for this call.
24
-
!!! related TS2757 tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx:17:18: Overload 1 of 2, '(props: Readonly<ResizablePanelProps>): ResizablePanel', gave the following error.
23
+
!!! error TS2755: No overload matches this call.
24
+
!!! related TS2760 tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx:17:18: Overload 1 of 2, '(props: Readonly<ResizablePanelProps>): ResizablePanel', gave the following error.
25
25
Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
26
26
Types of property 'children' are incompatible.
27
27
Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
28
28
Types of property 'length' are incompatible.
29
29
Type '3' is not assignable to type '2'.
30
-
!!! related TS2757 tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx:17:18: Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error.
30
+
!!! related TS2760 tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx:17:18: Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error.
31
31
Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
32
32
Types of property 'children' are incompatible.
33
33
Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
0 commit comments