You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/intersectionAndUnionTypes.errors.txt
+16-16
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,22 @@ tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(19,1): e
2
2
Property 'b' is missing in type 'A' but required in type 'B'.
3
3
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(20,1): error TS2322: Type 'B' is not assignable to type 'A & B'.
4
4
Property 'a' is missing in type 'B' but required in type 'A'.
5
-
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(23,1): error TS2322: Type 'A | B' is not assignable to type 'A & B | C & D'.
6
-
Type 'A' is not assignable to type 'A & B | C & D'.
5
+
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(23,1): error TS2322: Type 'A | B' is not assignable to type '(A & B) | (C & D)'.
6
+
Type 'A' is not assignable to type '(A & B) | (C & D)'.
7
7
Type 'A' is not assignable to type 'A & B'.
8
-
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(25,1): error TS2322: Type 'C | D' is not assignable to type 'A & B | C & D'.
9
-
Type 'C' is not assignable to type 'A & B | C & D'.
8
+
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(25,1): error TS2322: Type 'C | D' is not assignable to type '(A & B) | (C & D)'.
9
+
Type 'C' is not assignable to type '(A & B) | (C & D)'.
10
10
Type 'C' is not assignable to type 'C & D'.
11
11
Property 'd' is missing in type 'C' but required in type 'D'.
12
-
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(26,1): error TS2322: Type 'A & B | C & D' is not assignable to type 'A & B'.
12
+
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(26,1): error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'A & B'.
13
13
Type 'C & D' is not assignable to type 'A & B'.
14
14
Property 'a' is missing in type 'C & D' but required in type 'A'.
15
-
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(27,1): error TS2322: Type 'A & B | C & D' is not assignable to type 'A | B'.
15
+
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(27,1): error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'A | B'.
16
16
Type 'C & D' is not assignable to type 'A | B'.
17
-
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(28,1): error TS2322: Type 'A & B | C & D' is not assignable to type 'C & D'.
17
+
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(28,1): error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'C & D'.
18
18
Type 'A & B' is not assignable to type 'C & D'.
19
19
Property 'c' is missing in type 'A & B' but required in type 'C'.
20
-
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(29,1): error TS2322: Type 'A & B | C & D' is not assignable to type 'C | D'.
20
+
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(29,1): error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'C | D'.
21
21
Type 'A & B' is not assignable to type 'C | D'.
22
22
tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(31,1): error TS2322: Type 'A & B' is not assignable to type '(A | B) & (C | D)'.
23
23
Type 'A & B' is not assignable to type 'B & D'.
@@ -74,36 +74,36 @@ tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts(37,1): e
74
74
x = anb; // Ok
75
75
x = aob;
76
76
~
77
-
!!! error TS2322: Type 'A | B' is not assignable to type 'A & B | C & D'.
78
-
!!! error TS2322: Type 'A' is not assignable to type 'A & B | C & D'.
77
+
!!! error TS2322: Type 'A | B' is not assignable to type '(A & B) | (C & D)'.
78
+
!!! error TS2322: Type 'A' is not assignable to type '(A & B) | (C & D)'.
79
79
!!! error TS2322: Type 'A' is not assignable to type 'A & B'.
80
80
x = cnd; // Ok
81
81
x = cod;
82
82
~
83
-
!!! error TS2322: Type 'C | D' is not assignable to type 'A & B | C & D'.
84
-
!!! error TS2322: Type 'C' is not assignable to type 'A & B | C & D'.
83
+
!!! error TS2322: Type 'C | D' is not assignable to type '(A & B) | (C & D)'.
84
+
!!! error TS2322: Type 'C' is not assignable to type '(A & B) | (C & D)'.
85
85
!!! error TS2322: Type 'C' is not assignable to type 'C & D'.
86
86
!!! error TS2322: Property 'd' is missing in type 'C' but required in type 'D'.
87
87
!!! related TS2728 tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts:4:15: 'd' is declared here.
88
88
anb = x;
89
89
~~~
90
-
!!! error TS2322: Type 'A & B | C & D' is not assignable to type 'A & B'.
90
+
!!! error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'A & B'.
91
91
!!! error TS2322: Type 'C & D' is not assignable to type 'A & B'.
92
92
!!! error TS2322: Property 'a' is missing in type 'C & D' but required in type 'A'.
93
93
!!! related TS2728 tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts:1:15: 'a' is declared here.
94
94
aob = x;
95
95
~~~
96
-
!!! error TS2322: Type 'A & B | C & D' is not assignable to type 'A | B'.
96
+
!!! error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'A | B'.
97
97
!!! error TS2322: Type 'C & D' is not assignable to type 'A | B'.
98
98
cnd = x;
99
99
~~~
100
-
!!! error TS2322: Type 'A & B | C & D' is not assignable to type 'C & D'.
100
+
!!! error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'C & D'.
101
101
!!! error TS2322: Type 'A & B' is not assignable to type 'C & D'.
102
102
!!! error TS2322: Property 'c' is missing in type 'A & B' but required in type 'C'.
103
103
!!! related TS2728 tests/cases/conformance/types/intersection/intersectionAndUnionTypes.ts:3:15: 'c' is declared here.
104
104
cod = x;
105
105
~~~
106
-
!!! error TS2322: Type 'A & B | C & D' is not assignable to type 'C | D'.
106
+
!!! error TS2322: Type '(A & B) | (C & D)' is not assignable to type 'C | D'.
107
107
!!! error TS2322: Type 'A & B' is not assignable to type 'C | D'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/objectLiteralExcessProperties.errors.txt
+2-2
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ tests/cases/compiler/objectLiteralExcessProperties.ts(41,11): error TS2322: Type
26
26
'{ name: string; prop: boolean; }' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'IFoo'.
27
27
tests/cases/compiler/objectLiteralExcessProperties.ts(43,43): error TS2322: Type '{ name: string; prop: true; }' is not assignable to type 'T | { prop: boolean; }'.
28
28
Object literal may only specify known properties, and 'name' does not exist in type '{ prop: boolean; }'.
29
-
tests/cases/compiler/objectLiteralExcessProperties.ts(45,76): error TS2322: Type '{ name: string; prop: boolean; }' is not assignable to type 'T & { prop: boolean; } | { name: string; }'.
29
+
tests/cases/compiler/objectLiteralExcessProperties.ts(45,76): error TS2322: Type '{ name: string; prop: boolean; }' is not assignable to type '(T & { prop: boolean; }) | { name: string; }'.
30
30
Object literal may only specify known properties, and 'prop' does not exist in type '{ name: string; }'.
31
31
tests/cases/compiler/objectLiteralExcessProperties.ts(49,44): error TS2322: Type '{ z: string; }' is not assignable to type 'object & { x: string; }'.
32
32
Object literal may only specify known properties, and 'z' does not exist in type 'object & { x: string; }'.
@@ -122,7 +122,7 @@ tests/cases/compiler/objectLiteralExcessProperties.ts(49,44): error TS2322: Type
122
122
// Excess property checks only on non-generic parts of unions
0 commit comments