From 081637f2f8aceb9a01c00582de87db22c94b46ad Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 27 Mar 2019 23:42:20 -0700 Subject: [PATCH] Accepted baselines. --- ...ageOnIntersectionsWithDiscriminants01.errors.txt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/errorMessageOnIntersectionsWithDiscriminants01.errors.txt b/tests/baselines/reference/errorMessageOnIntersectionsWithDiscriminants01.errors.txt index 1ac471997d3..1acdc1587f4 100644 --- a/tests/baselines/reference/errorMessageOnIntersectionsWithDiscriminants01.errors.txt +++ b/tests/baselines/reference/errorMessageOnIntersectionsWithDiscriminants01.errors.txt @@ -1,9 +1,7 @@ tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts(8,1): error TS2322: Type 'A' is not assignable to type 'B'. Type '{ test: true; } & { foo: 1; }' is not assignable to type 'B'. - Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; } & { bar: 1; }'. - Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; }'. - Types of property 'test' are incompatible. - Type 'true' is not assignable to type 'false'. + Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: true; } & { bar: 1; }'. + Property 'bar' is missing in type '{ test: true; } & { foo: 1; }' but required in type '{ bar: 1; }'. ==== tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts (1 errors) ==== @@ -18,8 +16,7 @@ tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts(8,1): err ~ !!! error TS2322: Type 'A' is not assignable to type 'B'. !!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type 'B'. -!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; } & { bar: 1; }'. -!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; }'. -!!! error TS2322: Types of property 'test' are incompatible. -!!! error TS2322: Type 'true' is not assignable to type 'false'. +!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: true; } & { bar: 1; }'. +!!! error TS2322: Property 'bar' is missing in type '{ test: true; } & { foo: 1; }' but required in type '{ bar: 1; }'. +!!! related TS2728 tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts:3:28: 'bar' is declared here. \ No newline at end of file