Skip to content

Commit 224877d

Browse files
committed
Accept new baselines
1 parent 5108e60 commit 224877d

File tree

3 files changed

+12
-27
lines changed

3 files changed

+12
-27
lines changed

tests/baselines/reference/discriminatedUnionTypes1.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function f3(m: Message) {
320320
>"X" : "X"
321321

322322
m; // never
323-
>m : Message
323+
>m : never
324324
}
325325
}
326326

tests/baselines/reference/equalityWithIntersectionTypes01.errors.txt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(17,5): error TS2367: This condition will always return 'false' since the types 'I1 & I3' and 'I2' have no overlap.
22
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(17,16): error TS2367: This condition will always return 'false' since the types 'I2' and 'I1 & I3' have no overlap.
33
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(19,10): error TS2367: This condition will always return 'true' since the types 'I1 & I3' and 'I2' have no overlap.
4-
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(19,21): error TS2367: This condition will always return 'true' since the types 'I2' and 'I1 & I3' have no overlap.
5-
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(21,10): error TS2367: This condition will always return 'false' since the types 'I1 & I3' and 'I2' have no overlap.
6-
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(21,20): error TS2367: This condition will always return 'false' since the types 'I2' and 'I1 & I3' have no overlap.
7-
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(23,10): error TS2367: This condition will always return 'true' since the types 'I1 & I3' and 'I2' have no overlap.
8-
tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts(23,20): error TS2367: This condition will always return 'true' since the types 'I2' and 'I1 & I3' have no overlap.
94

105

11-
==== tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts (8 errors) ====
6+
==== tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersectionTypes01.ts (3 errors) ====
127
interface I1 {
138
p1: number
149
}
@@ -34,18 +29,8 @@ tests/cases/conformance/types/typeRelationships/comparable/equalityWithIntersect
3429
else if (y !== z || z !== y) {
3530
~~~~~~~
3631
!!! error TS2367: This condition will always return 'true' since the types 'I1 & I3' and 'I2' have no overlap.
37-
~~~~~~~
38-
!!! error TS2367: This condition will always return 'true' since the types 'I2' and 'I1 & I3' have no overlap.
3932
}
4033
else if (y == z || z == y) {
41-
~~~~~~
42-
!!! error TS2367: This condition will always return 'false' since the types 'I1 & I3' and 'I2' have no overlap.
43-
~~~~~~
44-
!!! error TS2367: This condition will always return 'false' since the types 'I2' and 'I1 & I3' have no overlap.
4534
}
4635
else if (y != z || z != y) {
47-
~~~~~~
48-
!!! error TS2367: This condition will always return 'true' since the types 'I1 & I3' and 'I2' have no overlap.
49-
~~~~~~
50-
!!! error TS2367: This condition will always return 'true' since the types 'I2' and 'I1 & I3' have no overlap.
5136
}

tests/baselines/reference/equalityWithIntersectionTypes01.types

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,24 @@ else if (y !== z || z !== y) {
4747
>y : I1 & I3
4848
>z : I2
4949
>z !== y : boolean
50-
>z : I2
51-
>y : I1 & I3
50+
>z : never
51+
>y : never
5252
}
5353
else if (y == z || z == y) {
5454
>y == z || z == y : boolean
5555
>y == z : boolean
56-
>y : I1 & I3
57-
>z : I2
56+
>y : never
57+
>z : never
5858
>z == y : boolean
59-
>z : I2
60-
>y : I1 & I3
59+
>z : never
60+
>y : never
6161
}
6262
else if (y != z || z != y) {
6363
>y != z || z != y : boolean
6464
>y != z : boolean
65-
>y : I1 & I3
66-
>z : I2
65+
>y : never
66+
>z : never
6767
>z != y : boolean
68-
>z : I2
69-
>y : I1 & I3
68+
>z : never
69+
>y : never
7070
}

0 commit comments

Comments
 (0)