Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/iterableArrayPattern28.errors.txt.diff

40 lines
3.8 KiB
Diff

--- old.iterableArrayPattern28.errors.txt
+++ new.iterableArrayPattern28.errors.txt
@@= skipped -0, +0 lines =@@
-iterableArrayPattern28.ts(2,28): error TS2769: No overload matches this call.
- Overload 1 of 4, '(iterable?: Iterable<readonly [string, number]> | null | undefined): Map<string, number>', gave the following error.
- Argument of type '([string, number] | [string, boolean])[]' is not assignable to parameter of type 'Iterable<readonly [string, number]>'.
- The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
- Type 'IteratorResult<[string, number] | [string, boolean], undefined>' is not assignable to type 'IteratorResult<readonly [string, number], any>'.
- Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorResult<readonly [string, number], any>'.
- Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorYieldResult<readonly [string, number]>'.
- Type '[string, number] | [string, boolean]' is not assignable to type 'readonly [string, number]'.
- Type '[string, boolean]' is not assignable to type 'readonly [string, number]'.
- Type at position 1 in source is not compatible with type at position 1 in target.
- Type 'boolean' is not assignable to type 'number'.
- Overload 2 of 4, '(entries?: readonly (readonly [string, number])[] | null | undefined): Map<string, number>', gave the following error.
+iterableArrayPattern28.ts(2,52): error TS2769: No overload matches this call.
+ The last overload gave the following error.
Type 'boolean' is not assignable to type 'number'.
==== iterableArrayPattern28.ts (1 errors) ====
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { }
takeFirstTwoEntries(...new Map([["", 0], ["hello", true]]));
- ~~~
+ ~~~~
!!! error TS2769: No overload matches this call.
-!!! error TS2769: Overload 1 of 4, '(iterable?: Iterable<readonly [string, number]> | null | undefined): Map<string, number>', gave the following error.
-!!! error TS2769: Argument of type '([string, number] | [string, boolean])[]' is not assignable to parameter of type 'Iterable<readonly [string, number]>'.
-!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
-!!! error TS2769: Type 'IteratorResult<[string, number] | [string, boolean], undefined>' is not assignable to type 'IteratorResult<readonly [string, number], any>'.
-!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorResult<readonly [string, number], any>'.
-!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorYieldResult<readonly [string, number]>'.
-!!! error TS2769: Type '[string, number] | [string, boolean]' is not assignable to type 'readonly [string, number]'.
-!!! error TS2769: Type '[string, boolean]' is not assignable to type 'readonly [string, number]'.
-!!! error TS2769: Type at position 1 in source is not compatible with type at position 1 in target.
-!!! error TS2769: Type 'boolean' is not assignable to type 'number'.
-!!! error TS2769: Overload 2 of 4, '(entries?: readonly (readonly [string, number])[] | null | undefined): Map<string, number>', gave the following error.
+!!! error TS2769: The last overload gave the following error.
!!! error TS2769: Type 'boolean' is not assignable to type 'number'.
+!!! related TS2771 lib.es2015.collection.d.ts:--:--: The last overload is declared here.