diff --git a/tests/baselines/reference/for-of39.errors.txt b/tests/baselines/reference/for-of39.errors.txt index 58b5f1ecdf1..62edda40de3 100644 --- a/tests/baselines/reference/for-of39.errors.txt +++ b/tests/baselines/reference/for-of39.errors.txt @@ -4,8 +4,8 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,19): error TS2345: Ar Types of parameters 'items' and 'items' are incompatible. Type 'ConcatArray<[string, boolean]>' is not assignable to type 'ConcatArray<[string, number] | [string, true]>'. Type '[string, boolean]' is not assignable to type '[string, number] | [string, true]'. - Type '[string, boolean]' is not assignable to type '[string, true]'. - Type 'boolean' is not assignable to type 'true'. + Type '[string, boolean]' is not assignable to type '[string, number]'. + Type 'boolean' is not assignable to type 'number'. ==== tests/cases/conformance/es6/for-ofStatements/for-of39.ts (1 errors) ==== @@ -17,8 +17,8 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,19): error TS2345: Ar !!! error TS2345: Types of parameters 'items' and 'items' are incompatible. !!! error TS2345: Type 'ConcatArray<[string, boolean]>' is not assignable to type 'ConcatArray<[string, number] | [string, true]>'. !!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, number] | [string, true]'. -!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, true]'. -!!! error TS2345: Type 'boolean' is not assignable to type 'true'. +!!! error TS2345: Type '[string, boolean]' is not assignable to type '[string, number]'. +!!! error TS2345: Type 'boolean' is not assignable to type 'number'. for (var [k, v] of map) { k; v; diff --git a/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt b/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt index 63683c87610..e7918d098db 100644 --- a/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt +++ b/tests/baselines/reference/unionTypeErrorMessageTypeRefs01.errors.txt @@ -1,9 +1,11 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(25,1): error TS2322: Type 'A' is not assignable to type 'A | B | C'. - Type 'A' is not assignable to type 'C'. - Property 'cProp' is missing in type 'A'. + Type 'A' is not assignable to type 'A'. + Type 'Foo' is not assignable to type 'Bar'. + Property 'bar' is missing in type 'Foo'. tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(26,1): error TS2322: Type 'B' is not assignable to type 'A | B | C'. - Type 'B' is not assignable to type 'C'. - Property 'cProp' is missing in type 'B'. + Type 'B' is not assignable to type 'B'. + Type 'Foo' is not assignable to type 'Baz'. + Property 'baz' is missing in type 'Foo'. tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(27,1): error TS2322: Type 'C' is not assignable to type 'A | B | C'. Type 'C' is not assignable to type 'C'. Type 'Foo' is not assignable to type 'Kwah'. @@ -48,13 +50,15 @@ tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts(50,1): error TS2322: Typ thingOfInterfaces = a; ~~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'A' is not assignable to type 'A | B | C'. -!!! error TS2322: Type 'A' is not assignable to type 'C'. -!!! error TS2322: Property 'cProp' is missing in type 'A'. +!!! error TS2322: Type 'A' is not assignable to type 'A'. +!!! error TS2322: Type 'Foo' is not assignable to type 'Bar'. +!!! error TS2322: Property 'bar' is missing in type 'Foo'. thingOfInterfaces = b; ~~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'B' is not assignable to type 'A | B | C'. -!!! error TS2322: Type 'B' is not assignable to type 'C'. -!!! error TS2322: Property 'cProp' is missing in type 'B'. +!!! error TS2322: Type 'B' is not assignable to type 'B'. +!!! error TS2322: Type 'Foo' is not assignable to type 'Baz'. +!!! error TS2322: Property 'baz' is missing in type 'Foo'. thingOfInterfaces = c; ~~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'C' is not assignable to type 'A | B | C'.