1
1
tests/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'.
3
2
tests/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'.
5
3
tests/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'.
7
4
tests/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'.
9
5
tests/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'.
11
6
12
7
13
8
==== tests/cases/compiler/errorMessagesIntersectionTypes03.ts (5 errors) ====
@@ -30,23 +25,18 @@ tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Ty
30
25
t = a_and_b;
31
26
~
32
27
!!! error TS2322: Type 'A & B' is not assignable to type 'T'.
33
- !!! error TS2322: Type 'B' is not assignable to type 'T'.
34
28
u = a_and_b;
35
29
~
36
30
!!! error TS2322: Type 'A & B' is not assignable to type 'U'.
37
- !!! error TS2322: Type 'B' is not assignable to type 'U'.
38
31
v = a_and_b;
39
32
~
40
33
!!! error TS2322: Type 'A & B' is not assignable to type 'V'.
41
- !!! error TS2322: Type 'B' is not assignable to type 'V'.
42
34
43
35
t = t_and_b;
44
36
u = t_and_b;
45
37
~
46
38
!!! error TS2322: Type 'T & B' is not assignable to type 'U'.
47
- !!! error TS2322: Type 'B' is not assignable to type 'U'.
48
39
v = t_and_b;
49
40
~
50
41
!!! error TS2322: Type 'T & B' is not assignable to type 'V'.
51
- !!! error TS2322: Type 'B' is not assignable to type 'V'.
52
42
}
0 commit comments