mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Accepted baselines.
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes03.ts(17,5): error TS2322: Type 'A & B' is not assignable to type 'T'.
|
||||
Type 'B' is not assignable to type 'T'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes03.ts(18,5): error TS2322: Type 'A & B' is not assignable to type 'U'.
|
||||
Type 'B' is not assignable to type 'U'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes03.ts(19,5): error TS2322: Type 'A & B' is not assignable to type 'V'.
|
||||
Type 'B' is not assignable to type 'V'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes03.ts(22,5): error TS2322: Type 'T & B' is not assignable to type 'U'.
|
||||
Type 'B' is not assignable to type 'U'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Type 'T & B' is not assignable to type 'V'.
|
||||
Type 'B' is not assignable to type 'V'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/errorMessagesIntersectionTypes03.ts (5 errors) ====
|
||||
@@ -30,23 +25,18 @@ tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Ty
|
||||
t = a_and_b;
|
||||
~
|
||||
!!! error TS2322: Type 'A & B' is not assignable to type 'T'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'T'.
|
||||
u = a_and_b;
|
||||
~
|
||||
!!! error TS2322: Type 'A & B' is not assignable to type 'U'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'U'.
|
||||
v = a_and_b;
|
||||
~
|
||||
!!! error TS2322: Type 'A & B' is not assignable to type 'V'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'V'.
|
||||
|
||||
t = t_and_b;
|
||||
u = t_and_b;
|
||||
~
|
||||
!!! error TS2322: Type 'T & B' is not assignable to type 'U'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'U'.
|
||||
v = t_and_b;
|
||||
~
|
||||
!!! error TS2322: Type 'T & B' is not assignable to type 'V'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'V'.
|
||||
}
|
||||
@@ -1,11 +1,7 @@
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(17,5): error TS2322: Type 'A & B' is not assignable to type 'number'.
|
||||
Type 'B' is not assignable to type 'number'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(18,5): error TS2322: Type 'A & B' is not assignable to type 'boolean'.
|
||||
Type 'B' is not assignable to type 'boolean'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(19,5): error TS2322: Type 'A & B' is not assignable to type 'string'.
|
||||
Type 'B' is not assignable to type 'string'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes04.ts(21,5): error TS2322: Type 'number & boolean' is not assignable to type 'string'.
|
||||
Type 'boolean' is not assignable to type 'string'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/errorMessagesIntersectionTypes04.ts (4 errors) ====
|
||||
@@ -28,18 +24,14 @@ tests/cases/compiler/errorMessagesIntersectionTypes04.ts(21,5): error TS2322: Ty
|
||||
num = a_and_b;
|
||||
~~~
|
||||
!!! error TS2322: Type 'A & B' is not assignable to type 'number'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'number'.
|
||||
bool = a_and_b;
|
||||
~~~~
|
||||
!!! error TS2322: Type 'A & B' is not assignable to type 'boolean'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'boolean'.
|
||||
str = a_and_b;
|
||||
~~~
|
||||
!!! error TS2322: Type 'A & B' is not assignable to type 'string'.
|
||||
!!! error TS2322: Type 'B' is not assignable to type 'string'.
|
||||
|
||||
str = num_and_bool;
|
||||
~~~
|
||||
!!! error TS2322: Type 'number & boolean' is not assignable to type 'string'.
|
||||
!!! error TS2322: Type 'boolean' is not assignable to type 'string'.
|
||||
}
|
||||
Reference in New Issue
Block a user