Skip to content

Commit 818c76c

Browse files
Accepted baselines.
1 parent 7e4532f commit 818c76c

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

tests/baselines/reference/errorMessagesIntersectionTypes03.errors.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
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'.
32
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'.
53
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'.
74
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'.
95
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'.
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
}

tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(17,5): error TS2322: Type 'A & B' is not assignable to type 'number'.
2-
Type 'B' is not assignable to type 'number'.
32
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(18,5): error TS2322: Type 'A & B' is not assignable to type 'boolean'.
4-
Type 'B' is not assignable to type 'boolean'.
53
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(19,5): error TS2322: Type 'A & B' is not assignable to type 'string'.
6-
Type 'B' is not assignable to type 'string'.
74
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(21,5): error TS2322: Type 'number & boolean' is not assignable to type 'string'.
8-
Type 'boolean' is not assignable to type 'string'.
95

106

117
==== tests/cases/compiler/errorMessagesIntersectionTypes04.ts (4 errors) ====
@@ -28,18 +24,14 @@ tests/cases/compiler/errorMessagesIntersectionTypes04.ts(21,5): error TS2322: Ty
2824
num = a_and_b;
2925
~~~
3026
!!! error TS2322: Type 'A & B' is not assignable to type 'number'.
31-
!!! error TS2322: Type 'B' is not assignable to type 'number'.
3227
bool = a_and_b;
3328
~~~~
3429
!!! error TS2322: Type 'A & B' is not assignable to type 'boolean'.
35-
!!! error TS2322: Type 'B' is not assignable to type 'boolean'.
3630
str = a_and_b;
3731
~~~
3832
!!! error TS2322: Type 'A & B' is not assignable to type 'string'.
39-
!!! error TS2322: Type 'B' is not assignable to type 'string'.
4033

4134
str = num_and_bool;
4235
~~~
4336
!!! error TS2322: Type 'number & boolean' is not assignable to type 'string'.
44-
!!! error TS2322: Type 'boolean' is not assignable to type 'string'.
4537
}

0 commit comments

Comments
 (0)