Skip to content

Commit 806a538

Browse files
Accepted baselines.
1 parent 649f294 commit 806a538

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/baselines/reference/objectLiteralsAgainstUnionsOfArrays01.errors.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts(9,5): error TS2322
22
Type '{ bar: { prop: number; }; }' is not assignable to type 'Foo'.
33
Types of property 'bar' are incompatible.
44
Type '{ prop: number; }' is not assignable to type 'Bar | Bar[]'.
5-
Type '{ prop: number; }' is not assignable to type 'Bar[]'.
6-
Property 'length' is missing in type '{ prop: number; }'.
5+
Type '{ prop: number; }' is not assignable to type 'Bar'.
6+
Types of property 'prop' are incompatible.
7+
Type 'number' is not assignable to type 'string'.
78

89

910
==== tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts (1 errors) ====
@@ -21,8 +22,9 @@ tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts(9,5): error TS2322
2122
!!! error TS2322: Type '{ bar: { prop: number; }; }' is not assignable to type 'Foo'.
2223
!!! error TS2322: Types of property 'bar' are incompatible.
2324
!!! error TS2322: Type '{ prop: number; }' is not assignable to type 'Bar | Bar[]'.
24-
!!! error TS2322: Type '{ prop: number; }' is not assignable to type 'Bar[]'.
25-
!!! error TS2322: Property 'length' is missing in type '{ prop: number; }'.
25+
!!! error TS2322: Type '{ prop: number; }' is not assignable to type 'Bar'.
26+
!!! error TS2322: Types of property 'prop' are incompatible.
27+
!!! error TS2322: Type 'number' is not assignable to type 'string'.
2628
{ bar: { prop: 100 } }
2729
]
2830

0 commit comments

Comments
 (0)