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/arrayLiteralTypeInference.errors.txt
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
tests/cases/compiler/arrayLiteralTypeInference.ts(13,5): error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type 'Action[]'.
1
+
tests/cases/compiler/arrayLiteralTypeInference.ts(14,14): error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type 'Action[]'.
2
2
Type '{ id: number; trueness: boolean; } | { id: number; name: string; }' is not assignable to type 'Action'.
3
3
Type '{ id: number; trueness: boolean; }' is not assignable to type 'Action'.
4
4
Object literal may only specify known properties, and 'trueness' does not exist in type 'Action'.
5
-
tests/cases/compiler/arrayLiteralTypeInference.ts(29,5): error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
5
+
tests/cases/compiler/arrayLiteralTypeInference.ts(31,18): error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
6
6
Type '{ id: number; trueness: boolean; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
7
7
Type '{ id: number; trueness: boolean; }' is not assignable to type '{ id: number; }'.
8
8
Object literal may only specify known properties, and 'trueness' does not exist in type '{ id: number; }'.
@@ -22,12 +22,12 @@ tests/cases/compiler/arrayLiteralTypeInference.ts(29,5): error TS2322: Type '({
22
22
}
23
23
24
24
var x1: Action[] = [
25
-
~~
25
+
{ id: 2, trueness: false },
26
+
~~~~~~~~~~~~~~~
26
27
!!! error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type 'Action[]'.
27
28
!!! error TS2322: Type '{ id: number; trueness: boolean; } | { id: number; name: string; }' is not assignable to type 'Action'.
28
29
!!! error TS2322: Type '{ id: number; trueness: boolean; }' is not assignable to type 'Action'.
29
30
!!! error TS2322: Object literal may only specify known properties, and 'trueness' does not exist in type 'Action'.
30
-
{ id: 2, trueness: false },
31
31
{ id: 3, name: "three" }
32
32
]
33
33
@@ -43,13 +43,13 @@ tests/cases/compiler/arrayLiteralTypeInference.ts(29,5): error TS2322: Type '({
43
43
]
44
44
45
45
var z1: { id: number }[] =
46
-
~~
46
+
[
47
+
{ id: 2, trueness: false },
48
+
~~~~~~~~~~~~~~~
47
49
!!! error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
48
50
!!! error TS2322: Type '{ id: number; trueness: boolean; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
49
51
!!! error TS2322: Type '{ id: number; trueness: boolean; }' is not assignable to type '{ id: number; }'.
50
52
!!! error TS2322: Object literal may only specify known properties, and 'trueness' does not exist in type '{ id: number; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatBug5.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/compiler/assignmentCompatBug5.ts(2,6): error TS2345: Argument of type '{ b: number; }' is not assignable to parameter of type '{ a: number; }'.
1
+
tests/cases/compiler/assignmentCompatBug5.ts(2,8): error TS2345: Argument of type '{ b: number; }' is not assignable to parameter of type '{ a: number; }'.
2
2
Object literal may only specify known properties, and 'b' does not exist in type '{ a: number; }'.
3
3
tests/cases/compiler/assignmentCompatBug5.ts(5,6): error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'number[]'.
4
4
Type 'string' is not assignable to type 'number'.
@@ -12,7 +12,7 @@ tests/cases/compiler/assignmentCompatBug5.ts(9,6): error TS2345: Argument of typ
Copy file name to clipboardExpand all lines: tests/baselines/reference/contextualTyping12.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
tests/cases/compiler/contextualTyping12.ts(1,13): error TS2322: Type '({ id: number; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
1
+
tests/cases/compiler/contextualTyping12.ts(1,57): error TS2322: Type '({ id: number; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
2
2
Type '{ id: number; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
3
3
Type '{ id: number; name: string; }' is not assignable to type '{ id: number; }'.
4
4
Object literal may only specify known properties, and 'name' does not exist in type '{ id: number; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/contextualTyping20.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
tests/cases/compiler/contextualTyping20.ts(1,36): error TS2322: Type '({ id: number; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
1
+
tests/cases/compiler/contextualTyping20.ts(1,58): error TS2322: Type '({ id: number; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
2
2
Type '{ id: number; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
3
3
Type '{ id: number; name: string; }' is not assignable to type '{ id: number; }'.
4
4
Object literal may only specify known properties, and 'name' does not exist in type '{ id: number; }'.
0 commit comments