Skip to content

Commit 7737cd5

Browse files
committed
Accept new baselines
1 parent c110f57 commit 7737cd5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/baselines/reference/objectLiteralNormalization.errors.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ tests/cases/conformance/expressions/objectLiterals/objectLiteralNormalization.ts
1010
Types of property 'a' are incompatible.
1111
Type 'string' is not assignable to type 'undefined'.
1212
tests/cases/conformance/expressions/objectLiterals/objectLiteralNormalization.ts(18,1): error TS2322: Type '{ a: number; }' is not assignable to type '{ a: number; b: number; } | { a: string; b?: undefined; } | { a?: undefined; b?: undefined; }'.
13-
Type '{ a: number; }' is not assignable to type '{ a?: undefined; b?: undefined; }'.
14-
Types of property 'a' are incompatible.
15-
Type 'number' is not assignable to type 'undefined'.
13+
Type '{ a: number; }' is not assignable to type '{ a: number; b: number; }'.
14+
Property 'b' is missing in type '{ a: number; }'.
1615

1716

1817
==== tests/cases/conformance/expressions/objectLiterals/objectLiteralNormalization.ts (5 errors) ====
@@ -52,9 +51,8 @@ tests/cases/conformance/expressions/objectLiterals/objectLiteralNormalization.ts
5251
a2 = { a: 1 }; // Error
5352
~~
5453
!!! error TS2322: Type '{ a: number; }' is not assignable to type '{ a: number; b: number; } | { a: string; b?: undefined; } | { a?: undefined; b?: undefined; }'.
55-
!!! error TS2322: Type '{ a: number; }' is not assignable to type '{ a?: undefined; b?: undefined; }'.
56-
!!! error TS2322: Types of property 'a' are incompatible.
57-
!!! error TS2322: Type 'number' is not assignable to type 'undefined'.
54+
!!! error TS2322: Type '{ a: number; }' is not assignable to type '{ a: number; b: number; }'.
55+
!!! error TS2322: Property 'b' is missing in type '{ a: number; }'.
5856

5957
// Object literals containing spreads are not normalized
6058
declare let b1: { a: string, b: string } | { b: string, c: string };

0 commit comments

Comments
 (0)