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/optionalTupleElements1.errors.txt
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
1
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'.
3
3
Types of property '2' are incompatible.
4
4
Type 'boolean | undefined' is not assignable to type 'boolean'.
5
5
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'.
7
7
Types of property '1' are incompatible.
8
8
Type 'string | undefined' is not assignable to type 'string'.
9
9
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'.
11
11
Types of property '0' are incompatible.
12
12
Type 'number | undefined' is not assignable to type 'number'.
13
13
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'.
15
15
Types of property '1' are incompatible.
16
16
Type 'string | undefined' is not assignable to type 'string'.
17
17
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'.
19
19
Types of property '0' are incompatible.
20
20
Type 'number | undefined' is not assignable to type 'number'.
21
21
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'.
23
23
Types of property '0' are incompatible.
24
24
Type 'number | undefined' is not assignable to type 'number'.
25
25
Type 'undefined' is not assignable to type 'number'.
!!! 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'.
48
48
!!! error TS2322: Types of property '2' are incompatible.
49
49
!!! error TS2322: Type 'boolean | undefined' is not assignable to type 'boolean'.
50
50
!!! error TS2322: Type 'undefined' is not assignable to type 'boolean'.
51
51
t1 = t3; // Error
52
52
~~
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'.
54
54
!!! error TS2322: Types of property '1' are incompatible.
55
55
!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'.
56
56
!!! error TS2322: Type 'undefined' is not assignable to type 'string'.
57
57
t1 = t4; // Error
58
58
~~
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'.
60
60
!!! error TS2322: Types of property '0' are incompatible.
61
61
!!! error TS2322: Type 'number | undefined' is not assignable to type 'number'.
62
62
!!! error TS2322: Type 'undefined' is not assignable to type 'number'.
63
63
t2 = t1;
64
64
t2 = t2;
65
65
t2 = t3; // Error
66
66
~~
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'.
68
68
!!! error TS2322: Types of property '1' are incompatible.
69
69
!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'.
70
70
!!! error TS2322: Type 'undefined' is not assignable to type 'string'.
71
71
t2 = t4; // Error
72
72
~~
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'.
74
74
!!! error TS2322: Types of property '0' are incompatible.
75
75
!!! error TS2322: Type 'number | undefined' is not assignable to type 'number'.
76
76
!!! error TS2322: Type 'undefined' is not assignable to type 'number'.
!!! 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'.
83
83
!!! error TS2322: Types of property '0' are incompatible.
84
84
!!! error TS2322: Type 'number | undefined' is not assignable to type 'number'.
85
85
!!! error TS2322: Type 'undefined' is not assignable to type 'number'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/recursiveTypeReferences1.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff 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'.
2
2
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(60,7): error TS2322: Type 'number' is not assignable to type 'string | RecArray<string>'.
3
3
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(66,8): error TS2322: Type 'number' is not assignable to type 'string | string[]'.
4
4
tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeReferences1.ts(72,8): error TS2322: Type 'number' is not assignable to type 'string | (string | string[])[]'.
0 commit comments