Skip to content

Commit acdb72d

Browse files
committed
update tests
1 parent 2a4d674 commit acdb72d

File tree

200 files changed

+1552
-1584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+1552
-1584
lines changed

tests/baselines/reference/2dArrays.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class Board {
2525
>allShipsSunk : Symbol(Board.allShipsSunk, Decl(2dArrays.ts, 9, 18))
2626

2727
return this.ships.every(function (val) { return val.isSunk; });
28-
>this.ships.every : Symbol(Array.every, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
28+
>this.ships.every : Symbol(ReadonlyArray.every, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
2929
>this.ships : Symbol(Board.ships, Decl(2dArrays.ts, 7, 13))
3030
>this : Symbol(Board, Decl(2dArrays.ts, 5, 1))
3131
>ships : Symbol(Board.ships, Decl(2dArrays.ts, 7, 13))
32-
>every : Symbol(Array.every, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
32+
>every : Symbol(ReadonlyArray.every, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3333
>val : Symbol(val, Decl(2dArrays.ts, 12, 42))
3434
>val.isSunk : Symbol(Ship.isSunk, Decl(2dArrays.ts, 3, 12))
3535
>val : Symbol(val, Decl(2dArrays.ts, 12, 42))

tests/baselines/reference/2dArrays.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ class Board {
2424

2525
return this.ships.every(function (val) { return val.isSunk; });
2626
>this.ships.every(function (val) { return val.isSunk; }) : boolean
27-
>this.ships.every : { <S extends Ship>(predicate: (value: Ship, index: number, array: Ship[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: Ship, index: number, array: Ship[]) => unknown, thisArg?: any): boolean; }
27+
>this.ships.every : { <S extends Ship>(predicate: (value: Ship, index: number, array: Ship[]) => value is S, thisArg?: any): this is readonly S[]; (predicate: (value: Ship, index: number, array: Ship[]) => unknown, thisArg?: any): boolean; }
2828
>this.ships : Ship[]
2929
>this : this
3030
>ships : Ship[]
31-
>every : { <S extends Ship>(predicate: (value: Ship, index: number, array: Ship[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: Ship, index: number, array: Ship[]) => unknown, thisArg?: any): boolean; }
31+
>every : { <S extends Ship>(predicate: (value: Ship, index: number, array: Ship[]) => value is S, thisArg?: any): this is readonly S[]; (predicate: (value: Ship, index: number, array: Ship[]) => unknown, thisArg?: any): boolean; }
3232
>function (val) { return val.isSunk; } : (val: Ship) => boolean
3333
>val : Ship
3434
>val.isSunk : boolean

tests/baselines/reference/anyInferenceAnonymousFunctions.symbols

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ var paired: any[];
33
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
44

55
paired.reduce(function (a1, a2) {
6-
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
6+
>paired.reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
77
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
8-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
8+
>reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
99
>a1 : Symbol(a1, Decl(anyInferenceAnonymousFunctions.ts, 2, 24))
1010
>a2 : Symbol(a2, Decl(anyInferenceAnonymousFunctions.ts, 2, 27))
1111

@@ -15,9 +15,9 @@ paired.reduce(function (a1, a2) {
1515
} , []);
1616

1717
paired.reduce((b1, b2) => {
18-
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
18+
>paired.reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
1919
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
20-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
20+
>reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
2121
>b1 : Symbol(b1, Decl(anyInferenceAnonymousFunctions.ts, 8, 15))
2222
>b2 : Symbol(b2, Decl(anyInferenceAnonymousFunctions.ts, 8, 18))
2323

@@ -27,24 +27,24 @@ paired.reduce((b1, b2) => {
2727
} , []);
2828

2929
paired.reduce((b3, b4) => b3.concat({}), []);
30-
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
30+
>paired.reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3131
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
32-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
32+
>reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3333
>b3 : Symbol(b3, Decl(anyInferenceAnonymousFunctions.ts, 13, 15))
3434
>b4 : Symbol(b4, Decl(anyInferenceAnonymousFunctions.ts, 13, 18))
3535
>b3 : Symbol(b3, Decl(anyInferenceAnonymousFunctions.ts, 13, 15))
3636

3737
paired.map((c1) => c1.count);
38-
>paired.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
38+
>paired.map : Symbol(ReadonlyArray.map, Decl(lib.es5.d.ts, --, --))
3939
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
40-
>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
40+
>map : Symbol(ReadonlyArray.map, Decl(lib.es5.d.ts, --, --))
4141
>c1 : Symbol(c1, Decl(anyInferenceAnonymousFunctions.ts, 15, 12))
4242
>c1 : Symbol(c1, Decl(anyInferenceAnonymousFunctions.ts, 15, 12))
4343

4444
paired.map(function (c2) { return c2.count; });
45-
>paired.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
45+
>paired.map : Symbol(ReadonlyArray.map, Decl(lib.es5.d.ts, --, --))
4646
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
47-
>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))
47+
>map : Symbol(ReadonlyArray.map, Decl(lib.es5.d.ts, --, --))
4848
>c2 : Symbol(c2, Decl(anyInferenceAnonymousFunctions.ts, 16, 21))
4949
>c2 : Symbol(c2, Decl(anyInferenceAnonymousFunctions.ts, 16, 21))
5050

tests/baselines/reference/argumentsAsPropertyName.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function myFunction(myType: MyType) {
3434
>x : Symbol(x, Decl(argumentsAsPropertyName.ts, 11, 13))
3535

3636
[1, 2, 3].forEach(function(j) { use(x); })
37-
>[1, 2, 3].forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
38-
>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
37+
>[1, 2, 3].forEach : Symbol(ReadonlyArray.forEach, Decl(lib.es5.d.ts, --, --))
38+
>forEach : Symbol(ReadonlyArray.forEach, Decl(lib.es5.d.ts, --, --))
3939
>j : Symbol(j, Decl(argumentsAsPropertyName.ts, 12, 35))
4040
>use : Symbol(use, Decl(argumentsAsPropertyName.ts, 3, 1))
4141
>x : Symbol(x, Decl(argumentsAsPropertyName.ts, 11, 13))

tests/baselines/reference/argumentsAsPropertyName2.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function foo() {
1313
>i : Symbol(i, Decl(argumentsAsPropertyName2.ts, 4, 11))
1414

1515
[].forEach(function () { i });
16-
>[].forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
17-
>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
16+
>[].forEach : Symbol(ReadonlyArray.forEach, Decl(lib.es5.d.ts, --, --))
17+
>forEach : Symbol(ReadonlyArray.forEach, Decl(lib.es5.d.ts, --, --))
1818
>i : Symbol(i, Decl(argumentsAsPropertyName2.ts, 4, 11))
1919

2020
({ arguments: 0 });

tests/baselines/reference/arrayAssignmentTest1.errors.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ tests/cases/compiler/arrayAssignmentTest1.ts(76,1): error TS2322: Type 'C1[]' is
2020
Property 'CM3M1' is missing in type 'C1' but required in type 'C3'.
2121
tests/cases/compiler/arrayAssignmentTest1.ts(77,1): error TS2322: Type 'I1[]' is not assignable to type 'C3[]'.
2222
Property 'CM3M1' is missing in type 'I1' but required in type 'C3'.
23-
tests/cases/compiler/arrayAssignmentTest1.ts(79,1): error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
24-
tests/cases/compiler/arrayAssignmentTest1.ts(80,1): error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
25-
tests/cases/compiler/arrayAssignmentTest1.ts(82,1): error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
26-
tests/cases/compiler/arrayAssignmentTest1.ts(83,1): error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
27-
tests/cases/compiler/arrayAssignmentTest1.ts(84,1): error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
28-
tests/cases/compiler/arrayAssignmentTest1.ts(85,1): error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
23+
tests/cases/compiler/arrayAssignmentTest1.ts(79,1): error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
24+
tests/cases/compiler/arrayAssignmentTest1.ts(80,1): error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
25+
tests/cases/compiler/arrayAssignmentTest1.ts(82,1): error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
26+
tests/cases/compiler/arrayAssignmentTest1.ts(83,1): error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
27+
tests/cases/compiler/arrayAssignmentTest1.ts(84,1): error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
28+
tests/cases/compiler/arrayAssignmentTest1.ts(85,1): error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
2929

3030

3131
==== tests/cases/compiler/arrayAssignmentTest1.ts (19 errors) ====
@@ -152,20 +152,20 @@ tests/cases/compiler/arrayAssignmentTest1.ts(85,1): error TS2740: Type 'I1' is m
152152

153153
arr_any = f1; // should be an error - is
154154
~~~~~~~
155-
!!! error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
155+
!!! error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
156156
arr_any = o1; // should be an error - is
157157
~~~~~~~
158-
!!! error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
158+
!!! error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
159159
arr_any = a1; // should be ok - is
160160
arr_any = c1; // should be an error - is
161161
~~~~~~~
162-
!!! error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
162+
!!! error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
163163
arr_any = c2; // should be an error - is
164164
~~~~~~~
165-
!!! error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
165+
!!! error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
166166
arr_any = c3; // should be an error - is
167167
~~~~~~~
168-
!!! error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
168+
!!! error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
169169
arr_any = i1; // should be an error - is
170170
~~~~~~~
171-
!!! error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
171+
!!! error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.

tests/baselines/reference/arrayAssignmentTest2.errors.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ tests/cases/compiler/arrayAssignmentTest2.ts(48,1): error TS2322: Type 'C1[]' is
44
Property 'CM3M1' is missing in type 'C1' but required in type 'C3'.
55
tests/cases/compiler/arrayAssignmentTest2.ts(49,1): error TS2322: Type 'I1[]' is not assignable to type 'C3[]'.
66
Property 'CM3M1' is missing in type 'I1' but required in type 'C3'.
7-
tests/cases/compiler/arrayAssignmentTest2.ts(51,1): error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
8-
tests/cases/compiler/arrayAssignmentTest2.ts(52,1): error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
9-
tests/cases/compiler/arrayAssignmentTest2.ts(53,1): error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
10-
tests/cases/compiler/arrayAssignmentTest2.ts(55,1): error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
11-
tests/cases/compiler/arrayAssignmentTest2.ts(56,1): error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
12-
tests/cases/compiler/arrayAssignmentTest2.ts(57,1): error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
13-
tests/cases/compiler/arrayAssignmentTest2.ts(58,1): error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
7+
tests/cases/compiler/arrayAssignmentTest2.ts(51,1): error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
8+
tests/cases/compiler/arrayAssignmentTest2.ts(52,1): error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
9+
tests/cases/compiler/arrayAssignmentTest2.ts(53,1): error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
10+
tests/cases/compiler/arrayAssignmentTest2.ts(55,1): error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
11+
tests/cases/compiler/arrayAssignmentTest2.ts(56,1): error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
12+
tests/cases/compiler/arrayAssignmentTest2.ts(57,1): error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
13+
tests/cases/compiler/arrayAssignmentTest2.ts(58,1): error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
1414

1515

1616
==== tests/cases/compiler/arrayAssignmentTest2.ts (10 errors) ====
@@ -78,24 +78,24 @@ tests/cases/compiler/arrayAssignmentTest2.ts(58,1): error TS2740: Type 'I1' is m
7878

7979
arr_any = f1; // should be an error - is
8080
~~~~~~~
81-
!!! error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
81+
!!! error TS2740: Type '() => C1' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
8282
arr_any = function () { return null;} // should be an error - is
8383
~~~~~~~
84-
!!! error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
84+
!!! error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
8585
arr_any = o1; // should be an error - is
8686
~~~~~~~
87-
!!! error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
87+
!!! error TS2740: Type '{ one: number; }' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
8888
arr_any = a1; // should be ok - is
8989
arr_any = c1; // should be an error - is
9090
~~~~~~~
91-
!!! error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
91+
!!! error TS2740: Type 'C1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
9292
arr_any = c2; // should be an error - is
9393
~~~~~~~
94-
!!! error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
94+
!!! error TS2740: Type 'C2' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
9595
arr_any = c3; // should be an error - is
9696
~~~~~~~
97-
!!! error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
97+
!!! error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
9898
arr_any = i1; // should be an error - is
9999
~~~~~~~
100-
!!! error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
100+
!!! error TS2740: Type 'I1' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
101101

tests/baselines/reference/arrayAssignmentTest3.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/arrayAssignmentTest3.ts(12,25): error TS2345: Argument of type 'B' is not assignable to parameter of type 'B[]'.
2-
Type 'B' is missing the following properties from type 'B[]': length, pop, push, concat, and 16 more.
2+
Type 'B' is missing the following properties from type 'B[]': length, pop, push, reverse, and 16 more.
33

44

55
==== tests/cases/compiler/arrayAssignmentTest3.ts (1 errors) ====
@@ -17,6 +17,6 @@ tests/cases/compiler/arrayAssignmentTest3.ts(12,25): error TS2345: Argument of t
1717
var xx = new a(null, 7, new B());
1818
~~~~~~~
1919
!!! error TS2345: Argument of type 'B' is not assignable to parameter of type 'B[]'.
20-
!!! error TS2345: Type 'B' is missing the following properties from type 'B[]': length, pop, push, concat, and 16 more.
20+
!!! error TS2345: Type 'B' is missing the following properties from type 'B[]': length, pop, push, reverse, and 16 more.
2121

2222

tests/baselines/reference/arrayAssignmentTest4.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/compiler/arrayAssignmentTest4.ts(22,1): error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
2-
tests/cases/compiler/arrayAssignmentTest4.ts(23,1): error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
1+
tests/cases/compiler/arrayAssignmentTest4.ts(22,1): error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
2+
tests/cases/compiler/arrayAssignmentTest4.ts(23,1): error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
33

44

55
==== tests/cases/compiler/arrayAssignmentTest4.ts (2 errors) ====
@@ -26,8 +26,8 @@ tests/cases/compiler/arrayAssignmentTest4.ts(23,1): error TS2740: Type 'C3' is m
2626

2727
arr_any = function () { return null;} // should be an error - is
2828
~~~~~~~
29-
!!! error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, concat, join, and 15 more.
29+
!!! error TS2740: Type '() => any' is missing the following properties from type 'any[]': pop, push, reverse, shift, and 15 more.
3030
arr_any = c3; // should be an error - is
3131
~~~~~~~
32-
!!! error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
32+
!!! error TS2740: Type 'C3' is missing the following properties from type 'any[]': length, pop, push, reverse, and 16 more.
3333

0 commit comments

Comments
 (0)