Skip to content

Commit 88d0315

Browse files
committed
Accept new baselines
1 parent 4bd698b commit 88d0315

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/baselines/reference/optionalTupleElements1.errors.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(11,29): error TS1257: A required element cannot follow an optional element.
2-
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(15,5): error TS2322: Type '[number, string, (boolean | undefined)?]' is not assignable to type '[number, string, boolean]'.
2+
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(15,5): error TS2322: Type 'T2' is not assignable to type 'T1'.
33
Types of property '2' are incompatible.
44
Type 'boolean | undefined' is not assignable to type 'boolean'.
55
Type 'undefined' is not assignable to type 'boolean'.
6-
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(16,5): error TS2322: Type '[number, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, boolean]'.
6+
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(16,5): error TS2322: Type 'T3' is not assignable to type 'T1'.
77
Types of property '1' are incompatible.
88
Type 'string | undefined' is not assignable to type 'string'.
99
Type 'undefined' is not assignable to type 'string'.
10-
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(17,5): error TS2322: Type '[(number | undefined)?, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, boolean]'.
10+
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(17,5): error TS2322: Type 'T4' is not assignable to type 'T1'.
1111
Types of property '0' are incompatible.
1212
Type 'number | undefined' is not assignable to type 'number'.
1313
Type 'undefined' is not assignable to type 'number'.
14-
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(20,5): error TS2322: Type '[number, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, (boolean | undefined)?]'.
14+
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(20,5): error TS2322: Type 'T3' is not assignable to type 'T2'.
1515
Types of property '1' are incompatible.
1616
Type 'string | undefined' is not assignable to type 'string'.
1717
Type 'undefined' is not assignable to type 'string'.
18-
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(21,5): error TS2322: Type '[(number | undefined)?, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, (boolean | undefined)?]'.
18+
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(21,5): error TS2322: Type 'T4' is not assignable to type 'T2'.
1919
Types of property '0' are incompatible.
2020
Type 'number | undefined' is not assignable to type 'number'.
2121
Type 'undefined' is not assignable to type 'number'.
22-
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(25,5): error TS2322: Type '[(number | undefined)?, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, (string | undefined)?, (boolean | undefined)?]'.
22+
tests/cases/conformance/types/tuple/optionalTupleElements1.ts(25,5): error TS2322: Type 'T4' is not assignable to type 'T3'.
2323
Types of property '0' are incompatible.
2424
Type 'number | undefined' is not assignable to type 'number'.
2525
Type 'undefined' is not assignable to type 'number'.
@@ -44,33 +44,33 @@ tests/cases/conformance/types/tuple/optionalTupleElements1.ts(25,5): error TS232
4444
t1 = t1;
4545
t1 = t2; // Error
4646
~~
47-
!!! error TS2322: Type '[number, string, (boolean | undefined)?]' is not assignable to type '[number, string, boolean]'.
47+
!!! error TS2322: Type 'T2' is not assignable to type 'T1'.
4848
!!! error TS2322: Types of property '2' are incompatible.
4949
!!! error TS2322: Type 'boolean | undefined' is not assignable to type 'boolean'.
5050
!!! error TS2322: Type 'undefined' is not assignable to type 'boolean'.
5151
t1 = t3; // Error
5252
~~
53-
!!! error TS2322: Type '[number, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, boolean]'.
53+
!!! error TS2322: Type 'T3' is not assignable to type 'T1'.
5454
!!! error TS2322: Types of property '1' are incompatible.
5555
!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'.
5656
!!! error TS2322: Type 'undefined' is not assignable to type 'string'.
5757
t1 = t4; // Error
5858
~~
59-
!!! error TS2322: Type '[(number | undefined)?, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, boolean]'.
59+
!!! error TS2322: Type 'T4' is not assignable to type 'T1'.
6060
!!! error TS2322: Types of property '0' are incompatible.
6161
!!! error TS2322: Type 'number | undefined' is not assignable to type 'number'.
6262
!!! error TS2322: Type 'undefined' is not assignable to type 'number'.
6363
t2 = t1;
6464
t2 = t2;
6565
t2 = t3; // Error
6666
~~
67-
!!! error TS2322: Type '[number, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, (boolean | undefined)?]'.
67+
!!! error TS2322: Type 'T3' is not assignable to type 'T2'.
6868
!!! error TS2322: Types of property '1' are incompatible.
6969
!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'.
7070
!!! error TS2322: Type 'undefined' is not assignable to type 'string'.
7171
t2 = t4; // Error
7272
~~
73-
!!! error TS2322: Type '[(number | undefined)?, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, string, (boolean | undefined)?]'.
73+
!!! error TS2322: Type 'T4' is not assignable to type 'T2'.
7474
!!! error TS2322: Types of property '0' are incompatible.
7575
!!! error TS2322: Type 'number | undefined' is not assignable to type 'number'.
7676
!!! error TS2322: Type 'undefined' is not assignable to type 'number'.
@@ -79,7 +79,7 @@ tests/cases/conformance/types/tuple/optionalTupleElements1.ts(25,5): error TS232
7979
t3 = t3;
8080
t3 = t4; // Error
8181
~~
82-
!!! error TS2322: Type '[(number | undefined)?, (string | undefined)?, (boolean | undefined)?]' is not assignable to type '[number, (string | undefined)?, (boolean | undefined)?]'.
82+
!!! error TS2322: Type 'T4' is not assignable to type 'T3'.
8383
!!! error TS2322: Types of property '0' are incompatible.
8484
!!! error TS2322: Type 'number | undefined' is not assignable to type 'number'.
8585
!!! error TS2322: Type 'undefined' is not assignable to type 'number'.

tests/baselines/reference/recursiveTypeReferences1.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/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(45,7): error TS2322: Type '42' is not assignable to type 'Box<number | Box2>'.
1+
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(45,7): error TS2322: Type '42' is not assignable to type 'Box2'.
22
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(60,7): error TS2322: Type 'number' is not assignable to type 'string | RecArray<string>'.
33
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(66,8): error TS2322: Type 'number' is not assignable to type 'string | string[]'.
44
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(72,8): error TS2322: Type 'number' is not assignable to type 'string | (string | string[])[]'.
@@ -60,7 +60,7 @@ tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeRefe
6060

6161
const b20: Box2 = 42; // Error
6262
~~~
63-
!!! error TS2322: Type '42' is not assignable to type 'Box<number | Box2>'.
63+
!!! error TS2322: Type '42' is not assignable to type 'Box2'.
6464
const b21: Box2 = { value: 42 };
6565
const b22: Box2 = { value: { value: { value: 42 }}};
6666

0 commit comments

Comments
 (0)