mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accepted baselines.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts(8,1): error TS2322: Type 'A' is not assignable to type 'B'.
|
||||
Type '{ test: true; } & { foo: 1; }' is not assignable to type 'B'.
|
||||
Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; } & { bar: 1; }'.
|
||||
Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; }'.
|
||||
Types of property 'test' are incompatible.
|
||||
Type 'true' is not assignable to type 'false'.
|
||||
Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: true; } & { bar: 1; }'.
|
||||
Property 'bar' is missing in type '{ test: true; } & { foo: 1; }' but required in type '{ bar: 1; }'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts (1 errors) ====
|
||||
@@ -18,8 +16,7 @@ tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts(8,1): err
|
||||
~
|
||||
!!! error TS2322: Type 'A' is not assignable to type 'B'.
|
||||
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type 'B'.
|
||||
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; } & { bar: 1; }'.
|
||||
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: false; }'.
|
||||
!!! error TS2322: Types of property 'test' are incompatible.
|
||||
!!! error TS2322: Type 'true' is not assignable to type 'false'.
|
||||
!!! error TS2322: Type '{ test: true; } & { foo: 1; }' is not assignable to type '{ test: true; } & { bar: 1; }'.
|
||||
!!! error TS2322: Property 'bar' is missing in type '{ test: true; } & { foo: 1; }' but required in type '{ bar: 1; }'.
|
||||
!!! related TS2728 tests/cases/compiler/errorMessageOnIntersectionsWithDiscriminants01.ts:3:28: 'bar' is declared here.
|
||||
|
||||
Reference in New Issue
Block a user