|
1 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(33,5): error TS2322: Type 'D' is not assignable to type 'C'. |
2 | | - Weak type 'C' has no properties in common with 'D'. |
3 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(34,5): error TS2322: Type 'E' is not assignable to type 'C'. |
4 | | - Weak type 'C' has no properties in common with 'E'. |
5 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(35,5): error TS2322: Type 'F' is not assignable to type 'C'. |
6 | | - Weak type 'C' has no properties in common with 'F'. |
7 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(36,5): error TS2322: Type 'D' is not assignable to type '{ opt?: Base; }'. |
8 | | - Weak type '{ opt?: Base; }' has no properties in common with 'D'. |
9 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(37,5): error TS2322: Type 'E' is not assignable to type '{ opt?: Base; }'. |
10 | | - Weak type '{ opt?: Base; }' has no properties in common with 'E'. |
11 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(38,5): error TS2322: Type 'F' is not assignable to type '{ opt?: Base; }'. |
12 | | - Weak type '{ opt?: Base; }' has no properties in common with 'F'. |
13 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(39,5): error TS2322: Type 'D' is not assignable to type '{ opt?: Base; }'. |
14 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(40,5): error TS2322: Type 'E' is not assignable to type '{ opt?: Base; }'. |
15 | | -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(41,5): error TS2322: Type 'F' is not assignable to type '{ opt?: Base; }'. |
| 1 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(33,5): error TS2559: Type 'D' has no properties in common with type 'C'. |
| 2 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(34,5): error TS2559: Type 'E' has no properties in common with type 'C'. |
| 3 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(35,5): error TS2559: Type 'F' has no properties in common with type 'C'. |
| 4 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(36,5): error TS2559: Type 'D' has no properties in common with type '{ opt?: Base; }'. |
| 5 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(37,5): error TS2559: Type 'E' has no properties in common with type '{ opt?: Base; }'. |
| 6 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(38,5): error TS2559: Type 'F' has no properties in common with type '{ opt?: Base; }'. |
| 7 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(39,5): error TS2559: Type 'D' has no properties in common with type '{ opt?: Base; }'. |
| 8 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(40,5): error TS2559: Type 'E' has no properties in common with type '{ opt?: Base; }'. |
| 9 | +tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(41,5): error TS2559: Type 'F' has no properties in common with type '{ opt?: Base; }'. |
16 | 10 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(74,5): error TS2322: Type 'D' is not assignable to type 'C'. |
17 | 11 | Property 'opt' is missing in type 'D'. |
18 | 12 | tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts(75,5): error TS2322: Type 'E' is not assignable to type 'C'. |
@@ -68,37 +62,31 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme |
68 | 62 | // disallowed by weak type checking |
69 | 63 | c = d; |
70 | 64 | ~ |
71 | | -!!! error TS2322: Type 'D' is not assignable to type 'C'. |
72 | | -!!! error TS2322: Weak type 'C' has no properties in common with 'D'. |
| 65 | +!!! error TS2559: Type 'D' has no properties in common with type 'C'. |
73 | 66 | c = e; |
74 | 67 | ~ |
75 | | -!!! error TS2322: Type 'E' is not assignable to type 'C'. |
76 | | -!!! error TS2322: Weak type 'C' has no properties in common with 'E'. |
| 68 | +!!! error TS2559: Type 'E' has no properties in common with type 'C'. |
77 | 69 | c = f; |
78 | 70 | ~ |
79 | | -!!! error TS2322: Type 'F' is not assignable to type 'C'. |
80 | | -!!! error TS2322: Weak type 'C' has no properties in common with 'F'. |
| 71 | +!!! error TS2559: Type 'F' has no properties in common with type 'C'. |
81 | 72 | a = d; |
82 | 73 | ~ |
83 | | -!!! error TS2322: Type 'D' is not assignable to type '{ opt?: Base; }'. |
84 | | -!!! error TS2322: Weak type '{ opt?: Base; }' has no properties in common with 'D'. |
| 74 | +!!! error TS2559: Type 'D' has no properties in common with type '{ opt?: Base; }'. |
85 | 75 | a = e; |
86 | 76 | ~ |
87 | | -!!! error TS2322: Type 'E' is not assignable to type '{ opt?: Base; }'. |
88 | | -!!! error TS2322: Weak type '{ opt?: Base; }' has no properties in common with 'E'. |
| 77 | +!!! error TS2559: Type 'E' has no properties in common with type '{ opt?: Base; }'. |
89 | 78 | a = f; |
90 | 79 | ~ |
91 | | -!!! error TS2322: Type 'F' is not assignable to type '{ opt?: Base; }'. |
92 | | -!!! error TS2322: Weak type '{ opt?: Base; }' has no properties in common with 'F'. |
| 80 | +!!! error TS2559: Type 'F' has no properties in common with type '{ opt?: Base; }'. |
93 | 81 | b = d; |
94 | 82 | ~ |
95 | | -!!! error TS2322: Type 'D' is not assignable to type '{ opt?: Base; }'. |
| 83 | +!!! error TS2559: Type 'D' has no properties in common with type '{ opt?: Base; }'. |
96 | 84 | b = e; |
97 | 85 | ~ |
98 | | -!!! error TS2322: Type 'E' is not assignable to type '{ opt?: Base; }'. |
| 86 | +!!! error TS2559: Type 'E' has no properties in common with type '{ opt?: Base; }'. |
99 | 87 | b = f; |
100 | 88 | ~ |
101 | | -!!! error TS2322: Type 'F' is not assignable to type '{ opt?: Base; }'. |
| 89 | +!!! error TS2559: Type 'F' has no properties in common with type '{ opt?: Base; }'. |
102 | 90 |
|
103 | 91 | // ok |
104 | 92 | c = a; |
|
0 commit comments