mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accepted baselines.
This commit is contained in:
@@ -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 } }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user