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/for-of39.errors.txt
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ for-of39.ts(1,15): error TS2769: No overload matches this call.
2
2
Overload 1 of 4, '(iterable?: Iterable<readonly [string, boolean]>): Map<string, boolean>', gave the following error.
3
3
Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'Iterable<readonly [string, boolean]>'.
4
4
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
5
-
Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
5
+
Type 'IteratorResult<[string, number] | [string, true], void>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
6
6
Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
7
7
Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult<readonly [string, boolean]>'.
8
8
Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'.
@@ -20,7 +20,7 @@ for-of39.ts(1,15): error TS2769: No overload matches this call.
20
20
!!! error TS2769: Overload 1 of 4, '(iterable?: Iterable<readonly [string, boolean]>): Map<string, boolean>', gave the following error.
21
21
!!! error TS2769: Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'Iterable<readonly [string, boolean]>'.
22
22
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
23
-
!!! error TS2769: Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
23
+
!!! error TS2769: Type 'IteratorResult<[string, number] | [string, true], void>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
24
24
!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
25
25
!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult<readonly [string, boolean]>'.
26
26
!!! error TS2769: Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'.
0 commit comments