11tests/cases/compiler/errorMessagesIntersectionTypes03.ts(17,5): error TS2322: Type 'A & B' is not assignable to type 'T'.
2- Type 'B' is not assignable to type 'T'.
32tests/cases/compiler/errorMessagesIntersectionTypes03.ts(18,5): error TS2322: Type 'A & B' is not assignable to type 'U'.
4- Type 'B' is not assignable to type 'U'.
53tests/cases/compiler/errorMessagesIntersectionTypes03.ts(19,5): error TS2322: Type 'A & B' is not assignable to type 'V'.
6- Type 'B' is not assignable to type 'V'.
74tests/cases/compiler/errorMessagesIntersectionTypes03.ts(22,5): error TS2322: Type 'T & B' is not assignable to type 'U'.
8- Type 'B' is not assignable to type 'U'.
95tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Type 'T & B' is not assignable to type 'V'.
10- Type 'B' is not assignable to type 'V'.
116
127
138==== tests/cases/compiler/errorMessagesIntersectionTypes03.ts (5 errors) ====
@@ -30,23 +25,18 @@ tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Ty
3025 t = a_and_b;
3126 ~
3227!!! error TS2322: Type 'A & B' is not assignable to type 'T'.
33- !!! error TS2322: Type 'B' is not assignable to type 'T'.
3428 u = a_and_b;
3529 ~
3630!!! error TS2322: Type 'A & B' is not assignable to type 'U'.
37- !!! error TS2322: Type 'B' is not assignable to type 'U'.
3831 v = a_and_b;
3932 ~
4033!!! error TS2322: Type 'A & B' is not assignable to type 'V'.
41- !!! error TS2322: Type 'B' is not assignable to type 'V'.
4234
4335 t = t_and_b;
4436 u = t_and_b;
4537 ~
4638!!! error TS2322: Type 'T & B' is not assignable to type 'U'.
47- !!! error TS2322: Type 'B' is not assignable to type 'U'.
4839 v = t_and_b;
4940 ~
5041!!! error TS2322: Type 'T & B' is not assignable to type 'V'.
51- !!! error TS2322: Type 'B' is not assignable to type 'V'.
5242 }
0 commit comments