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
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(32,5): error TS2739: Type '(number[] | string[])[]' is missing the following properties from type 'tup': 0, 1
9
9
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(33,5): error TS2739: Type 'number[]' is missing the following properties from type '[number, number, number]': 0, 1, 2
10
10
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error TS2322: Type '(string | number)[]' is not assignable to type 'myArray'.
11
-
Types of property 'pop' are incompatible.
12
-
Type '() => string | number' is not assignable to type '() => Number'.
13
-
Type 'string | number' is not assignable to type 'Number'.
14
-
Type 'string' is not assignable to type 'Number'.
11
+
The types returned by 'pop()' are incompatible between these types.
12
+
Type 'string | number' is not assignable to type 'Number'.
Copy file name to clipboardexpand all lines: tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt
+6-8
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(13,1): error TS2322: Type 'A[]' is not assignable to type 'readonly B[]'.
2
2
Property 'b' is missing in type 'A' but required in type 'B'.
3
3
tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error TS2322: Type 'C<A>' is not assignable to type 'readonly B[]'.
4
-
Types of property 'concat' are incompatible.
5
-
Type '{ (...items: ConcatArray<A>[]): A[]; (...items: (A | ConcatArray<A>)[]): A[]; }' is not assignable to type '{ (...items: ConcatArray<B>[]): B[]; (...items: (B | ConcatArray<B>)[]): B[]; }'.
6
-
Type 'A[]' is not assignable to type 'B[]'.
7
-
Type 'A' is not assignable to type 'B'.
4
+
The types returned by 'concat(...)' are incompatible between these types.
@@ -32,8 +31,7 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error T
32
31
rrb = cra; // error: 'A' is not assignable to 'B'
33
32
~~~
34
33
!!! error TS2322: Type 'C<A>' is not assignable to type 'readonly B[]'.
35
-
!!! error TS2322: Types of property 'concat' are incompatible.
36
-
!!! error TS2322: Type '{ (...items: ConcatArray<A>[]): A[]; (...items: (A | ConcatArray<A>)[]): A[]; }' is not assignable to type '{ (...items: ConcatArray<B>[]): B[]; (...items: (B | ConcatArray<B>)[]): B[]; }'.
37
-
!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'.
38
-
!!! error TS2322: Type 'A' is not assignable to type 'B'.
34
+
!!! error TS2322: The types returned by 'concat(...)' are incompatible between these types.
35
+
!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'.
36
+
!!! error TS2322: Type 'A' is not assignable to type 'B'.
Copy file name to clipboardexpand all lines: tests/baselines/reference/assignFromBooleanInterface2.errors.txt
+4-6
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(14,1): error TS2322: Type 'NotBoolean' is not assignable to type 'Boolean'.
2
-
Types of property 'valueOf' are incompatible.
3
-
Type '() => Object' is not assignable to type '() => boolean'.
4
-
Type 'Object' is not assignable to type 'boolean'.
2
+
The types returned by 'valueOf()' are incompatible between these types.
3
+
Type 'Object' is not assignable to type 'boolean'.
5
4
tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(19,1): error TS2322: Type 'Boolean' is not assignable to type 'boolean'.
6
5
'boolean' is a primitive, but 'Boolean' is a wrapper object. Prefer using 'boolean' when possible.
7
6
tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(20,1): error TS2322: Type 'NotBoolean' is not assignable to type 'boolean'.
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(8,23): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
6
6
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(9,23): error TS1055: Type 'PromiseLike' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.
7
7
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(10,23): error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.
8
-
Type 'Thenable' is not assignable to type 'PromiseLike<T>'.
9
-
Types of property 'then' are incompatible.
10
-
Type '() => void' is not assignable to type '<TResult1 = T, TResult2 = never>(onfulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseLike<TResult1 | TResult2>'.
11
-
Type 'void' is not assignable to type 'PromiseLike<TResult1 | TResult2>'.
8
+
Construct signature return types 'Thenable' and 'PromiseLike<T>' are incompatible.
9
+
The types returned by 'then(...)' are incompatible between these types.
10
+
Type 'void' is not assignable to type 'PromiseLike<TResult1 | TResult2>'.
12
11
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(17,16): error TS1058: The return type of an async function must either be a valid promise or must not contain a callable 'then' member.
13
12
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(23,25): error TS1320: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.
!!! error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.
41
-
!!! error TS1055: Type 'Thenable' is not assignable to type 'PromiseLike<T>'.
42
-
!!! error TS1055: Types of property 'then' are incompatible.
43
-
!!! error TS1055: Type '() => void' is not assignable to type '<TResult1 = T, TResult2 = never>(onfulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseLike<TResult1 | TResult2>'.
44
-
!!! error TS1055: Type 'void' is not assignable to type 'PromiseLike<TResult1 | TResult2>'.
40
+
!!! error TS1055: Construct signature return types 'Thenable' and 'PromiseLike<T>' are incompatible.
41
+
!!! error TS1055: The types returned by 'then(...)' are incompatible between these types.
42
+
!!! error TS1055: Type 'void' is not assignable to type 'PromiseLike<TResult1 | TResult2>'.
45
43
async function fn7() { return; } // valid: Promise<void>
46
44
async function fn8() { return 1; } // valid: Promise<number>
47
45
async function fn9() { return null; } // valid: Promise<any>
Copy file name to clipboardexpand all lines: tests/baselines/reference/bigintWithLib.errors.txt
+10-18
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,11 @@ tests/cases/compiler/bigintWithLib.ts(16,33): error TS2769: No overload matches
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.
6
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, any, undefined>'.
9
-
Type 'IterableIterator<number>' is not assignable to type 'Iterator<bigint, any, undefined>'.
10
-
Types of property 'next' are incompatible.
11
-
Type '(...args: [] | [undefined]) => IteratorResult<number, any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult<bigint, any>'.
12
-
Type 'IteratorResult<number, any>' is not assignable to type 'IteratorResult<bigint, any>'.
13
-
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<bigint, any>'.
14
-
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<bigint>'.
15
-
Type 'number' is not assignable to type 'bigint'.
7
+
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
8
+
Type 'IteratorResult<number, any>' is not assignable to type 'IteratorResult<bigint, any>'.
9
+
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<bigint, any>'.
10
+
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<bigint>'.
11
+
Type 'number' is not assignable to type 'bigint'.
16
12
Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
17
13
Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
18
14
Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
@@ -55,15 +51,11 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12
55
51
!!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'number'.
56
52
!!! error TS2769: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
57
53
!!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
58
-
!!! error TS2769: Types of property '[Symbol.iterator]' are incompatible.
59
-
!!! error TS2769: Type '() => IterableIterator<number>' is not assignable to type '() => Iterator<bigint, any, undefined>'.
60
-
!!! error TS2769: Type 'IterableIterator<number>' is not assignable to type 'Iterator<bigint, any, undefined>'.
61
-
!!! error TS2769: Types of property 'next' are incompatible.
62
-
!!! error TS2769: Type '(...args: [] | [undefined]) => IteratorResult<number, any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult<bigint, any>'.
63
-
!!! error TS2769: Type 'IteratorResult<number, any>' is not assignable to type 'IteratorResult<bigint, any>'.
64
-
!!! error TS2769: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<bigint, any>'.
65
-
!!! error TS2769: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<bigint>'.
66
-
!!! error TS2769: Type 'number' is not assignable to type 'bigint'.
54
+
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
55
+
!!! error TS2769: Type 'IteratorResult<number, any>' is not assignable to type 'IteratorResult<bigint, any>'.
56
+
!!! error TS2769: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<bigint, any>'.
57
+
!!! error TS2769: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<bigint>'.
58
+
!!! error TS2769: Type 'number' is not assignable to type 'bigint'.
67
59
!!! error TS2769: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error.
68
60
!!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'.
69
61
!!! error TS2769: Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag]
0 commit comments