|
1 | 1 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(35,1): error TS2322: Type 'S2' is not assignable to type 'T'.
|
2 | 2 | Types of parameters 'x' and 'x' are incompatible.
|
3 |
| - Type 'string' is not assignable to type 'number'. |
| 3 | + Type 'number' is not assignable to type 'string'. |
4 | 4 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(36,1): error TS2322: Type '(x: string) => void' is not assignable to type 'T'.
|
5 | 5 | Types of parameters 'x' and 'x' are incompatible.
|
6 |
| - Type 'string' is not assignable to type 'number'. |
| 6 | + Type 'number' is not assignable to type 'string'. |
7 | 7 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(37,1): error TS2322: Type '(x: string) => number' is not assignable to type 'T'.
|
8 | 8 | Types of parameters 'x' and 'x' are incompatible.
|
9 |
| - Type 'string' is not assignable to type 'number'. |
| 9 | + Type 'number' is not assignable to type 'string'. |
10 | 10 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(38,1): error TS2322: Type '(x: string) => string' is not assignable to type 'T'.
|
11 | 11 | Types of parameters 'x' and 'x' are incompatible.
|
12 |
| - Type 'string' is not assignable to type 'number'. |
| 12 | + Type 'number' is not assignable to type 'string'. |
13 | 13 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(39,1): error TS2322: Type 'S2' is not assignable to type '(x: number) => void'.
|
14 | 14 | Types of parameters 'x' and 'x' are incompatible.
|
15 |
| - Type 'string' is not assignable to type 'number'. |
| 15 | + Type 'number' is not assignable to type 'string'. |
16 | 16 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(40,1): error TS2322: Type '(x: string) => void' is not assignable to type '(x: number) => void'.
|
17 | 17 | Types of parameters 'x' and 'x' are incompatible.
|
18 |
| - Type 'string' is not assignable to type 'number'. |
| 18 | + Type 'number' is not assignable to type 'string'. |
19 | 19 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(41,1): error TS2322: Type '(x: string) => number' is not assignable to type '(x: number) => void'.
|
20 | 20 | Types of parameters 'x' and 'x' are incompatible.
|
21 |
| - Type 'string' is not assignable to type 'number'. |
| 21 | + Type 'number' is not assignable to type 'string'. |
22 | 22 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts(42,1): error TS2322: Type '(x: string) => string' is not assignable to type '(x: number) => void'.
|
23 | 23 | Types of parameters 'x' and 'x' are incompatible.
|
24 |
| - Type 'string' is not assignable to type 'number'. |
| 24 | + Type 'number' is not assignable to type 'string'. |
25 | 25 |
|
26 | 26 |
|
27 | 27 | ==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts (8 errors) ====
|
@@ -63,40 +63,40 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
|
63 | 63 | ~
|
64 | 64 | !!! error TS2322: Type 'S2' is not assignable to type 'T'.
|
65 | 65 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
66 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 66 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
67 | 67 | t = a3;
|
68 | 68 | ~
|
69 | 69 | !!! error TS2322: Type '(x: string) => void' is not assignable to type 'T'.
|
70 | 70 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
71 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 71 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
72 | 72 | t = (x: string) => 1;
|
73 | 73 | ~
|
74 | 74 | !!! error TS2322: Type '(x: string) => number' is not assignable to type 'T'.
|
75 | 75 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
76 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 76 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
77 | 77 | t = function (x: string) { return ''; }
|
78 | 78 | ~
|
79 | 79 | !!! error TS2322: Type '(x: string) => string' is not assignable to type 'T'.
|
80 | 80 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
81 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 81 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
82 | 82 | a = s2;
|
83 | 83 | ~
|
84 | 84 | !!! error TS2322: Type 'S2' is not assignable to type '(x: number) => void'.
|
85 | 85 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
86 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 86 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
87 | 87 | a = a3;
|
88 | 88 | ~
|
89 | 89 | !!! error TS2322: Type '(x: string) => void' is not assignable to type '(x: number) => void'.
|
90 | 90 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
91 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 91 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
92 | 92 | a = (x: string) => 1;
|
93 | 93 | ~
|
94 | 94 | !!! error TS2322: Type '(x: string) => number' is not assignable to type '(x: number) => void'.
|
95 | 95 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
96 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 96 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
97 | 97 | a = function (x: string) { return ''; }
|
98 | 98 | ~
|
99 | 99 | !!! error TS2322: Type '(x: string) => string' is not assignable to type '(x: number) => void'.
|
100 | 100 | !!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
101 |
| -!!! error TS2322: Type 'string' is not assignable to type 'number'. |
| 101 | +!!! error TS2322: Type 'number' is not assignable to type 'string'. |
102 | 102 |
|
0 commit comments