From 806a5385ccf7aa41791bff42f278eab0ff9c8460 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 17 Jul 2018 21:58:02 -0700 Subject: [PATCH] Accepted baselines. --- .../objectLiteralsAgainstUnionsOfArrays01.errors.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/baselines/reference/objectLiteralsAgainstUnionsOfArrays01.errors.txt b/tests/baselines/reference/objectLiteralsAgainstUnionsOfArrays01.errors.txt index bba6e3906e0..13cc52dd2c6 100644 --- a/tests/baselines/reference/objectLiteralsAgainstUnionsOfArrays01.errors.txt +++ b/tests/baselines/reference/objectLiteralsAgainstUnionsOfArrays01.errors.txt @@ -2,8 +2,9 @@ tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts(9,5): error TS2322 Type '{ bar: { prop: number; }; }' is not assignable to type 'Foo'. Types of property 'bar' are incompatible. Type '{ prop: number; }' is not assignable to type 'Bar | Bar[]'. - Type '{ prop: number; }' is not assignable to type 'Bar[]'. - Property 'length' is missing in type '{ prop: number; }'. + Type '{ prop: number; }' is not assignable to type 'Bar'. + Types of property 'prop' are incompatible. + Type 'number' is not assignable to type 'string'. ==== tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts (1 errors) ==== @@ -21,8 +22,9 @@ tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts(9,5): error TS2322 !!! error TS2322: Type '{ bar: { prop: number; }; }' is not assignable to type 'Foo'. !!! error TS2322: Types of property 'bar' are incompatible. !!! error TS2322: Type '{ prop: number; }' is not assignable to type 'Bar | Bar[]'. -!!! error TS2322: Type '{ prop: number; }' is not assignable to type 'Bar[]'. -!!! error TS2322: Property 'length' is missing in type '{ prop: number; }'. +!!! error TS2322: Type '{ prop: number; }' is not assignable to type 'Bar'. +!!! error TS2322: Types of property 'prop' are incompatible. +!!! error TS2322: Type 'number' is not assignable to type 'string'. { bar: { prop: 100 } } ] \ No newline at end of file