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/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt
+6-10Lines changed: 6 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,11 @@
1
1
tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(13,1): error TS2322: Type 'A[]' is not assignable to type 'ReadonlyArray<B>'.
2
-
Types of property 'concat' are incompatible.
3
-
Type '{ (...items: ConcatArray<A>[]): A[]; (...items: (A | ConcatArray<A>)[]): A[]; }' is not assignable to type '{ (...items: ConcatArray<B>[]): B[]; (...items: (B | ConcatArray<B>)[]): B[]; }'.
4
-
Type 'A[]' is not assignable to type 'B[]'.
5
-
Type 'A' is not assignable to type 'B'.
6
-
Property 'b' is missing in type 'A'.
2
+
Type 'A' is not assignable to type 'B'.
3
+
Property 'b' is missing in type 'A'.
7
4
tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error TS2322: Type 'C<A>' is not assignable to type 'ReadonlyArray<B>'.
8
5
Types of property 'concat' are incompatible.
9
6
Type '{ (...items: ConcatArray<A>[]): A[]; (...items: (A | ConcatArray<A>)[]): A[]; }' is not assignable to type '{ (...items: ConcatArray<B>[]): B[]; (...items: (B | ConcatArray<B>)[]): B[]; }'.
@@ -26,11 +24,8 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error T
26
24
rrb = ara; // error: 'A' is not assignable to 'B'
27
25
~~~
28
26
!!! error TS2322: Type 'A[]' is not assignable to type 'ReadonlyArray<B>'.
29
-
!!! error TS2322: Types of property 'concat' are incompatible.
30
-
!!! 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[]; }'.
31
-
!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'.
32
-
!!! error TS2322: Type 'A' is not assignable to type 'B'.
33
-
!!! error TS2322: Property 'b' is missing in type 'A'.
27
+
!!! error TS2322: Type 'A' is not assignable to type 'B'.
28
+
!!! error TS2322: Property 'b' is missing in type 'A'.
34
29
35
30
rra = cra;
36
31
rra = crb; // OK, C<B> is assignable to ReadonlyArray<A>
@@ -41,4 +36,5 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error T
41
36
!!! error TS2322: Types of property 'concat' are incompatible.
42
37
!!! 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[]; }'.
43
38
!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'.
39
+
!!! error TS2322: Type 'A' is not assignable to type 'B'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatBetweenTupleAndArray.errors.txt
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatBetweenTupleAndArray.ts(17,1): error TS2322: Type '[number, string]' is not assignable to type 'number[]'.
2
-
Types of property 'pop' are incompatible.
3
-
Type '() => string | number' is not assignable to type '() => number'.
4
-
Type 'string | number' is not assignable to type 'number'.
5
-
Type 'string' is not assignable to type 'number'.
2
+
Type 'string | number' is not assignable to type 'number'.
3
+
Type 'string' is not assignable to type 'number'.
6
4
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatBetweenTupleAndArray.ts(18,1): error TS2322: Type '{}[]' is not assignable to type '[{}]'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/for-of39.errors.txt
+6-14Lines changed: 6 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,16 @@
1
1
tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,19): error TS2345: Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'ReadonlyArray<[string, boolean]>'.
tests/cases/conformance/es6/destructuring/iterableArrayPattern28.ts(1,33): error TS2501: A rest element cannot contain a binding pattern.
2
2
tests/cases/conformance/es6/destructuring/iterableArrayPattern28.ts(2,32): error TS2345: Argument of type '([string, number] | [string, boolean])[]' is not assignable to parameter of type 'ReadonlyArray<[string, number]>'.
!!! error TS2345: Argument of type '([string, number] | [string, boolean])[]' is not assignable to parameter of type 'ReadonlyArray<[string, number]>'.
18
-
!!! error TS2345: Types of property 'concat' are incompatible.
0 commit comments