Files

25 lines
1.5 KiB
Diff

--- old.arrayConcatMap.errors.txt
+++ new.arrayConcatMap.errors.txt
@@= skipped -0, +0 lines =@@
arrayConcatMap.ts(1,20): error TS2769: No overload matches this call.
- Overload 1 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
- Type '{ a: number; }' is not assignable to type 'never'.
- Overload 2 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
+ The last overload gave the following error.
Type '{ a: number; }' is not assignable to type 'never'.
arrayConcatMap.ts(2,23): error TS2339: Property 'a' does not exist on type 'never'.
@@= skipped -9, +7 lines =@@
var x = [].concat([{ a: 1 }], [{ a: 2 }])
~~~~~~~~
!!! error TS2769: No overload matches this call.
-!!! error TS2769: Overload 1 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
-!!! error TS2769: Type '{ a: number; }' is not assignable to type 'never'.
-!!! error TS2769: Overload 2 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
-!!! error TS2769: Type '{ a: number; }' is not assignable to type 'never'.
+!!! error TS2769: The last overload gave the following error.
+!!! error TS2769: Type '{ a: number; }' is not assignable to type 'never'.
+!!! related TS2771 lib.es5.d.ts:--:--: The last overload is declared here.
.map(b => b.a);
~
!!! error TS2339: Property 'a' does not exist on type 'never'.