Skip to content

Commit 43d92f0

Browse files
committed
Accept new baselines
1 parent 6763389 commit 43d92f0

13 files changed

+62
-62
lines changed

tests/baselines/reference/arityAndOrderCompatibility01.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,12): error TS2339: Property '2' does not exist on type '[string, number]'.
1+
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,12): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'.
22
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(17,5): error TS2461: Type '{ 0: string; 1: number; length: 2; }' is not an array type.
33
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(18,5): error TS2741: Property '2' is missing in type '[string, number]' but required in type '[number, number, number]'.
44
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(19,5): error TS2741: Property '2' is missing in type 'StrNum' but required in type '[number, number, number]'.
@@ -45,7 +45,7 @@ tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(32,5): error
4545

4646
var [a, b, c] = x;
4747
~
48-
!!! error TS2339: Property '2' does not exist on type '[string, number]'.
48+
!!! error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'.
4949
var [d, e, f] = y;
5050
var [g, h, i] = z;
5151
~~~~~~~~~

tests/baselines/reference/bestCommonTypeOfTuple.errors.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(22,13): error TS2339: Property '2' does not exist on type '[(x: number) => string, (x: number) => number]'.
2-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(23,13): error TS2339: Property '2' does not exist on type '[E1, E2]'.
3-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(24,13): error TS2339: Property '2' does not exist on type '[number, any]'.
4-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(25,13): error TS2339: Property '3' does not exist on type '[E1, E2, number]'.
1+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(22,13): error TS2493: Tuple type '[(x: number) => string, (x: number) => number]' of length '2' has no element at index '2'.
2+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(23,13): error TS2493: Tuple type '[E1, E2]' of length '2' has no element at index '2'.
3+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(24,13): error TS2493: Tuple type '[number, any]' of length '2' has no element at index '2'.
4+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts(25,13): error TS2493: Tuple type '[E1, E2, number]' of length '3' has no element at index '3'.
55

66

77
==== tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts (4 errors) ====
@@ -28,13 +28,13 @@ tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfT
2828
t4 = [E1.one, E2.two, 20];
2929
var e1 = t1[2]; // {}
3030
~
31-
!!! error TS2339: Property '2' does not exist on type '[(x: number) => string, (x: number) => number]'.
31+
!!! error TS2493: Tuple type '[(x: number) => string, (x: number) => number]' of length '2' has no element at index '2'.
3232
var e2 = t2[2]; // {}
3333
~
34-
!!! error TS2339: Property '2' does not exist on type '[E1, E2]'.
34+
!!! error TS2493: Tuple type '[E1, E2]' of length '2' has no element at index '2'.
3535
var e3 = t3[2]; // any
3636
~
37-
!!! error TS2339: Property '2' does not exist on type '[number, any]'.
37+
!!! error TS2493: Tuple type '[number, any]' of length '2' has no element at index '2'.
3838
var e4 = t4[3]; // number
3939
~
40-
!!! error TS2339: Property '3' does not exist on type '[E1, E2, number]'.
40+
!!! error TS2493: Tuple type '[E1, E2, number]' of length '3' has no element at index '3'.

tests/baselines/reference/bestCommonTypeOfTuple2.errors.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(17,14): error TS2339: Property '4' does not exist on type '[C, base]'.
2-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(18,14): error TS2339: Property '4' does not exist on type '[C, D]'.
3-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(19,14): error TS2339: Property '4' does not exist on type '[C1, D1]'.
4-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(20,14): error TS2339: Property '2' does not exist on type '[base1, C1]'.
5-
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(21,14): error TS2339: Property '2' does not exist on type '[C1, F]'.
1+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(17,14): error TS2493: Tuple type '[C, base]' of length '2' has no element at index '4'.
2+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(18,14): error TS2493: Tuple type '[C, D]' of length '2' has no element at index '4'.
3+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(19,14): error TS2493: Tuple type '[C1, D1]' of length '2' has no element at index '4'.
4+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(20,14): error TS2493: Tuple type '[base1, C1]' of length '2' has no element at index '2'.
5+
tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts(21,14): error TS2493: Tuple type '[C1, F]' of length '2' has no element at index '2'.
66

77

88
==== tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts (5 errors) ====
@@ -24,17 +24,17 @@ tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfT
2424

2525
var e11 = t1[4]; // base
2626
~
27-
!!! error TS2339: Property '4' does not exist on type '[C, base]'.
27+
!!! error TS2493: Tuple type '[C, base]' of length '2' has no element at index '4'.
2828
var e21 = t2[4]; // {}
2929
~
30-
!!! error TS2339: Property '4' does not exist on type '[C, D]'.
30+
!!! error TS2493: Tuple type '[C, D]' of length '2' has no element at index '4'.
3131
var e31 = t3[4]; // C1
3232
~
33-
!!! error TS2339: Property '4' does not exist on type '[C1, D1]'.
33+
!!! error TS2493: Tuple type '[C1, D1]' of length '2' has no element at index '4'.
3434
var e41 = t4[2]; // base1
3535
~
36-
!!! error TS2339: Property '2' does not exist on type '[base1, C1]'.
36+
!!! error TS2493: Tuple type '[base1, C1]' of length '2' has no element at index '2'.
3737
var e51 = t5[2]; // {}
3838
~
39-
!!! error TS2339: Property '2' does not exist on type '[C1, F]'.
39+
!!! error TS2493: Tuple type '[C1, F]' of length '2' has no element at index '2'.
4040

tests/baselines/reference/castingTuple.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tests/cases/conformance/types/tuple/castingTuple.ts(14,15): error TS2352: Conver
66
tests/cases/conformance/types/tuple/castingTuple.ts(15,14): error TS2352: Conversion of type '[number, string]' to type '[number, string, boolean]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
77
tests/cases/conformance/types/tuple/castingTuple.ts(18,21): error TS2352: Conversion of type '[C, D]' to type '[C, D, A]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
88
Property '2' is missing in type '[C, D]' but required in type '[C, D, A]'.
9-
tests/cases/conformance/types/tuple/castingTuple.ts(20,33): error TS2339: Property '5' does not exist on type '[C, D, A]'.
9+
tests/cases/conformance/types/tuple/castingTuple.ts(20,33): error TS2493: Tuple type '[C, D, A]' of length '3' has no element at index '5'.
1010
tests/cases/conformance/types/tuple/castingTuple.ts(30,10): error TS2352: Conversion of type '[number, string]' to type '[number, number]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
1111
Type 'string' is not comparable to type 'number'.
1212
tests/cases/conformance/types/tuple/castingTuple.ts(31,10): error TS2352: Conversion of type '[C, D]' to type '[A, I]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
@@ -49,7 +49,7 @@ tests/cases/conformance/types/tuple/castingTuple.ts(33,1): error TS2304: Cannot
4949
var eleFromCDA1 = classCDATuple[2]; // A
5050
var eleFromCDA2 = classCDATuple[5]; // C | D | A
5151
~
52-
!!! error TS2339: Property '5' does not exist on type '[C, D, A]'.
52+
!!! error TS2493: Tuple type '[C, D, A]' of length '3' has no element at index '5'.
5353
var t10: [E1, E2] = [E1.one, E2.one];
5454
var t11 = <[number, number]>t10;
5555
var array1 = <{}[]>emptyObjTuple;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts(3,17): error TS2339: Property '1' does not exist on type '[any]'.
2-
tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts(3,29): error TS2339: Property '2' does not exist on type '[any]'.
1+
tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts(3,17): error TS2493: Tuple type '[any]' of length '1' has no element at index '1'.
2+
tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts(3,29): error TS2493: Tuple type '[any]' of length '1' has no element at index '2'.
33

44

55
==== tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts (2 errors) ====
66
declare function wrapper(x: any);
77
wrapper((array: [any]) => {
88
[this.test, this.test1, this.test2] = array; // even though there is a compiler error, we should still emit lexical capture for "this"
99
~~~~~~~~~~
10-
!!! error TS2339: Property '1' does not exist on type '[any]'.
10+
!!! error TS2493: Tuple type '[any]' of length '1' has no element at index '1'.
1111
~~~~~~~~~~
12-
!!! error TS2339: Property '2' does not exist on type '[any]'.
12+
!!! error TS2493: Tuple type '[any]' of length '1' has no element at index '2'.
1313
});

tests/baselines/reference/emitCapturingThisInTupleDestructuring2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/emitCapturingThisInTupleDestructuring2.ts(8,39): error TS2339: Property '2' does not exist on type '[number, number]'.
1+
tests/cases/compiler/emitCapturingThisInTupleDestructuring2.ts(8,39): error TS2493: Tuple type '[number, number]' of length '2' has no element at index '2'.
22

33

44
==== tests/cases/compiler/emitCapturingThisInTupleDestructuring2.ts (1 errors) ====
@@ -11,6 +11,6 @@ tests/cases/compiler/emitCapturingThisInTupleDestructuring2.ts(8,39): error TS23
1111
method() {
1212
() => [this.test, this.test1, this.test2] = array1; // even though there is a compiler error, we should still emit lexical capture for "this"
1313
~~~~~~~~~~
14-
!!! error TS2339: Property '2' does not exist on type '[number, number]'.
14+
!!! error TS2493: Tuple type '[number, number]' of length '2' has no element at index '2'.
1515
}
1616
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion01.ts(2,11): error TS2339: Property '0' does not exist on type '[]'.
1+
tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion01.ts(2,11): error TS2493: Tuple type '[]' of length '0' has no element at index '0'.
22

33

44
==== tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion01.ts (1 errors) ====
55
let x = <[]>[];
66
let y = x[0];
77
~
8-
!!! error TS2339: Property '0' does not exist on type '[]'.
8+
!!! error TS2493: Tuple type '[]' of length '0' has no element at index '0'.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion02.ts(2,11): error TS2339: Property '0' does not exist on type '[]'.
1+
tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion02.ts(2,11): error TS2493: Tuple type '[]' of length '0' has no element at index '0'.
22

33

44
==== tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion02.ts (1 errors) ====
55
let x = [] as [];
66
let y = x[0];
77
~
8-
!!! error TS2339: Property '0' does not exist on type '[]'.
8+
!!! error TS2493: Tuple type '[]' of length '0' has no element at index '0'.

tests/baselines/reference/genericCallWithTupleType.errors.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(12,1): error TS2322: Type '[string, number, boolean, boolean]' is not assignable to type '[string, number]'.
22
Types of property 'length' are incompatible.
33
Type '4' is not assignable to type '2'.
4-
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(13,20): error TS2339: Property '2' does not exist on type '[string, number]'.
4+
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(13,20): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'.
55
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(14,1): error TS2322: Type '{ a: string; }' is not assignable to type 'undefined'.
6-
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(14,11): error TS2339: Property '3' does not exist on type '[string, number]'.
7-
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(15,20): error TS2339: Property '3' does not exist on type '[string, number]'.
6+
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(14,11): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '3'.
7+
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(15,20): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '3'.
88
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(22,14): error TS2322: Type 'number' is not assignable to type 'string'.
99
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(22,17): error TS2322: Type 'string' is not assignable to type 'number'.
1010
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTupleType.ts(23,14): error TS2322: Type '{}' is not assignable to type 'string'.
@@ -31,15 +31,15 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithTup
3131
!!! error TS2322: Type '4' is not assignable to type '2'.
3232
var e3 = i1.tuple1[2]; // {}
3333
~
34-
!!! error TS2339: Property '2' does not exist on type '[string, number]'.
34+
!!! error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'.
3535
i1.tuple1[3] = { a: "string" };
3636
~~~~~~~~~~~~
3737
!!! error TS2322: Type '{ a: string; }' is not assignable to type 'undefined'.
3838
~
39-
!!! error TS2339: Property '3' does not exist on type '[string, number]'.
39+
!!! error TS2493: Tuple type '[string, number]' of length '2' has no element at index '3'.
4040
var e4 = i1.tuple1[3]; // {}
4141
~
42-
!!! error TS2339: Property '3' does not exist on type '[string, number]'.
42+
!!! error TS2493: Tuple type '[string, number]' of length '2' has no element at index '3'.
4343
i2.tuple1 = ["foo", 5];
4444
i2.tuple1 = ["foo", "bar"];
4545
i2.tuple1 = [5, "bar"];

tests/baselines/reference/indexerWithTuple.errors.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/conformance/types/tuple/indexerWithTuple.ts(11,25): error TS2339: Property '2' does not exist on type '[string, number]'.
2-
tests/cases/conformance/types/tuple/indexerWithTuple.ts(17,27): error TS2339: Property '2' does not exist on type '[number, [string, number]]'.
3-
tests/cases/conformance/types/tuple/indexerWithTuple.ts(20,30): error TS2339: Property '2' does not exist on type '[number, string | number]'.
4-
tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2339: Property '2' does not exist on type '[boolean, string | number]'.
1+
tests/cases/conformance/types/tuple/indexerWithTuple.ts(11,25): error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'.
2+
tests/cases/conformance/types/tuple/indexerWithTuple.ts(17,27): error TS2493: Tuple type '[number, [string, number]]' of length '2' has no element at index '2'.
3+
tests/cases/conformance/types/tuple/indexerWithTuple.ts(20,30): error TS2493: Tuple type '[number, string | number]' of length '2' has no element at index '2'.
4+
tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2493: Tuple type '[boolean, string | number]' of length '2' has no element at index '2'.
55

66

77
==== tests/cases/conformance/types/tuple/indexerWithTuple.ts (4 errors) ====
@@ -17,20 +17,20 @@ tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2339: Pr
1717
var ele11 = strNumTuple[1]; // number
1818
var ele12 = strNumTuple[2]; // string | number
1919
~
20-
!!! error TS2339: Property '2' does not exist on type '[string, number]'.
20+
!!! error TS2493: Tuple type '[string, number]' of length '2' has no element at index '2'.
2121
var ele13 = strNumTuple[idx0]; // string | number
2222
var ele14 = strNumTuple[idx1]; // string | number
2323
var ele15 = strNumTuple["0"]; // string
2424
var ele16 = strNumTuple["1"]; // number
2525
var strNumTuple1 = numTupleTuple[1]; //[string, number];
2626
var ele17 = numTupleTuple[2]; // number | [string, number]
2727
~
28-
!!! error TS2339: Property '2' does not exist on type '[number, [string, number]]'.
28+
!!! error TS2493: Tuple type '[number, [string, number]]' of length '2' has no element at index '2'.
2929
var eleUnion10 = unionTuple1[0]; // number
3030
var eleUnion11 = unionTuple1[1]; // string | number
3131
var eleUnion12 = unionTuple1[2]; // string | number
3232
~
33-
!!! error TS2339: Property '2' does not exist on type '[number, string | number]'.
33+
!!! error TS2493: Tuple type '[number, string | number]' of length '2' has no element at index '2'.
3434
var eleUnion13 = unionTuple1[idx0]; // string | number
3535
var eleUnion14 = unionTuple1[idx1]; // string | number
3636
var eleUnion15 = unionTuple1["0"]; // number
@@ -40,7 +40,7 @@ tests/cases/conformance/types/tuple/indexerWithTuple.ts(28,30): error TS2339: Pr
4040
var eleUnion21 = unionTuple2[1]; // string | number
4141
var eleUnion22 = unionTuple2[2]; // string | number | boolean
4242
~
43-
!!! error TS2339: Property '2' does not exist on type '[boolean, string | number]'.
43+
!!! error TS2493: Tuple type '[boolean, string | number]' of length '2' has no element at index '2'.
4444
var eleUnion23 = unionTuple2[idx0]; // string | number | boolean
4545
var eleUnion24 = unionTuple2[idx1]; // string | number | boolean
4646
var eleUnion25 = unionTuple2["0"]; // boolean

0 commit comments

Comments
 (0)