From 6d755aa301cbd9442df1e51fd3536369e8002808 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 21 Jun 2018 13:13:50 -0700 Subject: [PATCH] Accepted baselines. --- ...unionTypeErrorMessageTypeRefs01.errors.txt | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt b/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt index e7918d098d..f5d3584501 100644 --- a/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt +++ b/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt @@ -11,11 +11,13 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(27,1): error TS2322: Typ Type 'Foo' is not assignable to type 'Kwah'. Property 'kwah' is missing in type 'Foo'. tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(48,1): error TS2322: Type 'X' is not assignable to type 'X | Y | Z'. - Type 'X' is not assignable to type 'Z'. - Property 'zProp' is missing in type 'X'. + Type 'X' is not assignable to type 'X'. + Types of property 'xProp' are incompatible. + Type 'Foo' is not assignable to type 'Bar'. tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(49,1): error TS2322: Type 'Y' is not assignable to type 'X | Y | Z'. - Type 'Y' is not assignable to type 'Z'. - Property 'zProp' is missing in type 'Y'. + Type 'Y' is not assignable to type 'Y'. + Types of property 'yProp' are incompatible. + Type 'Foo' is not assignable to type 'Baz'. tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(50,1): error TS2322: Type 'Z' is not assignable to type 'X | Y | Z'. Type 'Z' is not assignable to type 'Z'. Types of property 'zProp' are incompatible. @@ -88,13 +90,15 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(50,1): error TS2322: Typ thingOfTypeAliases = x; ~~~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'X' is not assignable to type 'X | Y | Z'. -!!! error TS2322: Type 'X' is not assignable to type 'Z'. -!!! error TS2322: Property 'zProp' is missing in type 'X'. +!!! error TS2322: Type 'X' is not assignable to type 'X'. +!!! error TS2322: Types of property 'xProp' are incompatible. +!!! error TS2322: Type 'Foo' is not assignable to type 'Bar'. thingOfTypeAliases = y; ~~~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'Y' is not assignable to type 'X | Y | Z'. -!!! error TS2322: Type 'Y' is not assignable to type 'Z'. -!!! error TS2322: Property 'zProp' is missing in type 'Y'. +!!! error TS2322: Type 'Y' is not assignable to type 'Y'. +!!! error TS2322: Types of property 'yProp' are incompatible. +!!! error TS2322: Type 'Foo' is not assignable to type 'Baz'. thingOfTypeAliases = z; ~~~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'Z' is not assignable to type 'X | Y | Z'.