Skip to content

Commit 081637f

Browse files
Accepted baselines.
1 parent 74d3e2a commit 081637f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts(8,1): error TS2322: Type 'A' is not assignable to type 'B'.
22
Type '{ test: true; } & { foo: 1; }' is not assignable to type 'B'.
3-
Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; } & { bar: 1; }'.
4-
Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; }'.
5-
Types of property 'test' are incompatible.
6-
Type 'true' is not assignable to type 'false'.
3+
Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: true; } & { bar: 1; }'.
4+
Property 'bar' is missing in type '{ test: true; } & { foo: 1; }' but required in type '{ bar: 1; }'.
75

86

97
==== tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts (1 errors) ====
@@ -18,8 +16,7 @@ tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts(8,1): err
1816
~
1917
!!! error TS2322: Type 'A' is not assignable to type 'B'.
2018
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type 'B'.
21-
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; } & { bar: 1; }'.
22-
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; }'.
23-
!!! error TS2322: Types of property 'test' are incompatible.
24-
!!! error TS2322: Type 'true' is not assignable to type 'false'.
19+
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: true; } & { bar: 1; }'.
20+
!!! error TS2322: Property 'bar' is missing in type '{ test: true; } & { foo: 1; }' but required in type '{ bar: 1; }'.
21+
!!! related TS2728 tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts:3:28: 'bar' is declared here.
2522

0 commit comments

Comments
 (0)