Skip to content

Commit 5447cbe

Browse files
author
Andy Hanson
committed
Add tests and update baselines
1 parent ebc4a6d commit 5447cbe

26 files changed

+216
-81
lines changed

tests/baselines/reference/anyInferenceAnonymousFunctions.symbols

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,42 @@ var paired: any[];
33
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
44

55
paired.reduce(function (a1, a2) {
6-
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
6+
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
77
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
8-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
8+
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
99
>a1 : Symbol(a1, Decl(anyInferenceAnonymousFunctions.ts, 2, 24))
1010
>a2 : Symbol(a2, Decl(anyInferenceAnonymousFunctions.ts, 2, 27))
1111

1212
return a1.concat({});
13+
>a1.concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
1314
>a1 : Symbol(a1, Decl(anyInferenceAnonymousFunctions.ts, 2, 24))
15+
>concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
1416

1517
} , []);
1618

1719
paired.reduce((b1, b2) => {
18-
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
20+
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
1921
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
20-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
22+
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
2123
>b1 : Symbol(b1, Decl(anyInferenceAnonymousFunctions.ts, 8, 15))
2224
>b2 : Symbol(b2, Decl(anyInferenceAnonymousFunctions.ts, 8, 18))
2325

2426
return b1.concat({});
27+
>b1.concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
2528
>b1 : Symbol(b1, Decl(anyInferenceAnonymousFunctions.ts, 8, 15))
29+
>concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
2630

2731
} , []);
2832

2933
paired.reduce((b3, b4) => b3.concat({}), []);
30-
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
34+
>paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3135
>paired : Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3))
32-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
36+
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3337
>b3 : Symbol(b3, Decl(anyInferenceAnonymousFunctions.ts, 13, 15))
3438
>b4 : Symbol(b4, Decl(anyInferenceAnonymousFunctions.ts, 13, 18))
39+
>b3.concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3540
>b3 : Symbol(b3, Decl(anyInferenceAnonymousFunctions.ts, 13, 15))
41+
>concat : Symbol(Array.concat, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
3642

3743
paired.map((c1) => c1.count);
3844
>paired.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --))

tests/baselines/reference/anyInferenceAnonymousFunctions.types

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@ var paired: any[];
33
>paired : any[]
44

55
paired.reduce(function (a1, a2) {
6-
>paired.reduce(function (a1, a2) { return a1.concat({});} , []) : any
7-
>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
6+
>paired.reduce(function (a1, a2) { return a1.concat({});} , []) : any[]
7+
>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
88
>paired : any[]
9-
>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
10-
>function (a1, a2) { return a1.concat({});} : (a1: any, a2: any) => any
11-
>a1 : any
9+
>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
10+
>function (a1, a2) { return a1.concat({});} : (a1: any[], a2: any) => any[]
11+
>a1 : any[]
1212
>a2 : any
1313

1414
return a1.concat({});
15-
>a1.concat({}) : any
16-
>a1.concat : any
17-
>a1 : any
18-
>concat : any
15+
>a1.concat({}) : any[]
16+
>a1.concat : { (...items: ConcatArray<any>[]): any[]; (...items: any[]): any[]; }
17+
>a1 : any[]
18+
>concat : { (...items: ConcatArray<any>[]): any[]; (...items: any[]): any[]; }
1919
>{} : {}
2020

2121
} , []);
2222
>[] : undefined[]
2323

2424
paired.reduce((b1, b2) => {
25-
>paired.reduce((b1, b2) => { return b1.concat({});} , []) : any
26-
>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
25+
>paired.reduce((b1, b2) => { return b1.concat({});} , []) : any[]
26+
>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
2727
>paired : any[]
28-
>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
29-
>(b1, b2) => { return b1.concat({});} : (b1: any, b2: any) => any
30-
>b1 : any
28+
>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
29+
>(b1, b2) => { return b1.concat({});} : (b1: any[], b2: any) => any[]
30+
>b1 : any[]
3131
>b2 : any
3232

3333
return b1.concat({});
34-
>b1.concat({}) : any
35-
>b1.concat : any
36-
>b1 : any
37-
>concat : any
34+
>b1.concat({}) : any[]
35+
>b1.concat : { (...items: ConcatArray<any>[]): any[]; (...items: any[]): any[]; }
36+
>b1 : any[]
37+
>concat : { (...items: ConcatArray<any>[]): any[]; (...items: any[]): any[]; }
3838
>{} : {}
3939

4040
} , []);
4141
>[] : undefined[]
4242

4343
paired.reduce((b3, b4) => b3.concat({}), []);
44-
>paired.reduce((b3, b4) => b3.concat({}), []) : any
45-
>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
44+
>paired.reduce((b3, b4) => b3.concat({}), []) : any[]
45+
>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
4646
>paired : any[]
47-
>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
48-
>(b3, b4) => b3.concat({}) : (b3: any, b4: any) => any
49-
>b3 : any
47+
>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }
48+
>(b3, b4) => b3.concat({}) : (b3: any[], b4: any) => any[]
49+
>b3 : any[]
5050
>b4 : any
51-
>b3.concat({}) : any
52-
>b3.concat : any
53-
>b3 : any
54-
>concat : any
51+
>b3.concat({}) : any[]
52+
>b3.concat : { (...items: ConcatArray<any>[]): any[]; (...items: any[]): any[]; }
53+
>b3 : any[]
54+
>concat : { (...items: ConcatArray<any>[]): any[]; (...items: any[]): any[]; }
5555
>{} : {}
5656
>[] : undefined[]
5757

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
tests/cases/compiler/arrayReduce.ts(10,2): error TS2322: Type '{ kind: string; value: number; }' is not assignable to type 'Operation'.
2+
Types of property 'kind' are incompatible.
3+
Type 'string' is not assignable to type '"add" | "subtract"'.
4+
5+
6+
==== tests/cases/compiler/arrayReduce.ts (1 errors) ====
7+
function toStrings(arr: ReadonlyArray<object>): string[] {
8+
return arr.reduce((acc, obj) => {
9+
acc.push(obj.toString());
10+
return acc;
11+
}, [] as string[]);
12+
}
13+
14+
interface Operation { readonly kind: "add" | "subtract"; readonly value: number; }
15+
function add(arr: ReadonlyArray<Operation>): Operation {
16+
return arr.reduce(({ value }, { kind, value: v }) => {
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
return { kind: "add", value: kind === "add" ? value + v : value - v };
19+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20+
}, { kind: "add", value: 5 });
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
!!! error TS2322: Type '{ kind: string; value: number; }' is not assignable to type 'Operation'.
23+
!!! error TS2322: Types of property 'kind' are incompatible.
24+
!!! error TS2322: Type 'string' is not assignable to type '"add" | "subtract"'.
25+
}
26+

tests/baselines/reference/arrayReduce.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ function toStrings(arr: ReadonlyArray<object>): string[] {
55
return acc;
66
}, [] as string[]);
77
}
8+
9+
interface Operation { readonly kind: "add" | "subtract"; readonly value: number; }
10+
function add(arr: ReadonlyArray<Operation>): Operation {
11+
return arr.reduce(({ value }, { kind, value: v }) => {
12+
return { kind: "add", value: kind === "add" ? value + v : value - v };
13+
}, { kind: "add", value: 5 });
14+
}
815

916

1017
//// [arrayReduce.js]
@@ -14,3 +21,10 @@ function toStrings(arr) {
1421
return acc;
1522
}, []);
1623
}
24+
function add(arr) {
25+
return arr.reduce(function (_a, _b) {
26+
var value = _a.value;
27+
var kind = _b.kind, v = _b.value;
28+
return { kind: "add", value: kind === "add" ? value + v : value - v };
29+
}, { kind: "add", value: 5 });
30+
}

tests/baselines/reference/arrayReduce.symbols

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,38 @@ function toStrings(arr: ReadonlyArray<object>): string[] {
2525
}, [] as string[]);
2626
}
2727

28+
interface Operation { readonly kind: "add" | "subtract"; readonly value: number; }
29+
>Operation : Symbol(Operation, Decl(arrayReduce.ts, 5, 1))
30+
>kind : Symbol(Operation.kind, Decl(arrayReduce.ts, 7, 21))
31+
>value : Symbol(Operation.value, Decl(arrayReduce.ts, 7, 56))
32+
33+
function add(arr: ReadonlyArray<Operation>): Operation {
34+
>add : Symbol(add, Decl(arrayReduce.ts, 7, 82))
35+
>arr : Symbol(arr, Decl(arrayReduce.ts, 8, 13))
36+
>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --))
37+
>Operation : Symbol(Operation, Decl(arrayReduce.ts, 5, 1))
38+
>Operation : Symbol(Operation, Decl(arrayReduce.ts, 5, 1))
39+
40+
return arr.reduce(({ value }, { kind, value: v }) => {
41+
>arr.reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
42+
>arr : Symbol(arr, Decl(arrayReduce.ts, 8, 13))
43+
>reduce : Symbol(ReadonlyArray.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
44+
>value : Symbol(value, Decl(arrayReduce.ts, 9, 21))
45+
>kind : Symbol(kind, Decl(arrayReduce.ts, 9, 32))
46+
>value : Symbol(Operation.value, Decl(arrayReduce.ts, 7, 56))
47+
>v : Symbol(v, Decl(arrayReduce.ts, 9, 38))
48+
49+
return { kind: "add", value: kind === "add" ? value + v : value - v };
50+
>kind : Symbol(kind, Decl(arrayReduce.ts, 10, 10))
51+
>value : Symbol(value, Decl(arrayReduce.ts, 10, 23))
52+
>kind : Symbol(kind, Decl(arrayReduce.ts, 9, 32))
53+
>value : Symbol(value, Decl(arrayReduce.ts, 9, 21))
54+
>v : Symbol(v, Decl(arrayReduce.ts, 9, 38))
55+
>value : Symbol(value, Decl(arrayReduce.ts, 9, 21))
56+
>v : Symbol(v, Decl(arrayReduce.ts, 9, 38))
57+
58+
}, { kind: "add", value: 5 });
59+
>kind : Symbol(kind, Decl(arrayReduce.ts, 11, 5))
60+
>value : Symbol(value, Decl(arrayReduce.ts, 11, 18))
61+
}
62+

tests/baselines/reference/arrayReduce.types

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,50 @@ function toStrings(arr: ReadonlyArray<object>): string[] {
3131
>[] : undefined[]
3232
}
3333

34+
interface Operation { readonly kind: "add" | "subtract"; readonly value: number; }
35+
>Operation : Operation
36+
>kind : "add" | "subtract"
37+
>value : number
38+
39+
function add(arr: ReadonlyArray<Operation>): Operation {
40+
>add : (arr: ReadonlyArray<Operation>) => Operation
41+
>arr : ReadonlyArray<Operation>
42+
>ReadonlyArray : ReadonlyArray<T>
43+
>Operation : Operation
44+
>Operation : Operation
45+
46+
return arr.reduce(({ value }, { kind, value: v }) => {
47+
>arr.reduce(({ value }, { kind, value: v }) => { return { kind: "add", value: kind === "add" ? value + v : value - v }; }, { kind: "add", value: 5 }) : { kind: string; value: number; }
48+
>arr.reduce : { (callbackfn: (previousValue: Operation, currentValue: Operation, currentIndex: number, array: ReadonlyArray<Operation>) => Operation): Operation; <U>(callbackfn: (previousValue: U, currentValue: Operation, currentIndex: number, array: ReadonlyArray<Operation>) => U, initialValue: U): U; }
49+
>arr : ReadonlyArray<Operation>
50+
>reduce : { (callbackfn: (previousValue: Operation, currentValue: Operation, currentIndex: number, array: ReadonlyArray<Operation>) => Operation): Operation; <U>(callbackfn: (previousValue: U, currentValue: Operation, currentIndex: number, array: ReadonlyArray<Operation>) => U, initialValue: U): U; }
51+
>({ value }, { kind, value: v }) => { return { kind: "add", value: kind === "add" ? value + v : value - v }; } : ({ value }: { kind: string; value: number; }, { kind, value: v }: Operation) => { kind: string; value: number; }
52+
>value : number
53+
>kind : "add" | "subtract"
54+
>value : any
55+
>v : number
56+
57+
return { kind: "add", value: kind === "add" ? value + v : value - v };
58+
>{ kind: "add", value: kind === "add" ? value + v : value - v } : { kind: string; value: number; }
59+
>kind : string
60+
>"add" : "add"
61+
>value : number
62+
>kind === "add" ? value + v : value - v : number
63+
>kind === "add" : boolean
64+
>kind : "add" | "subtract"
65+
>"add" : "add"
66+
>value + v : number
67+
>value : number
68+
>v : number
69+
>value - v : number
70+
>value : number
71+
>v : number
72+
73+
}, { kind: "add", value: 5 });
74+
>{ kind: "add", value: 5 } : { kind: string; value: number; }
75+
>kind : string
76+
>"add" : "add"
77+
>value : number
78+
>5 : 5
79+
}
80+

tests/baselines/reference/duplicateOverloadInTypeAugmentation1.symbols

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ interface Array<T> {
44
>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
55

66
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T,
7-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
7+
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
88
>callbackfn : Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 11))
99
>previousValue : Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 24))
1010
>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
@@ -21,7 +21,7 @@ interface Array<T> {
2121
>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
2222

2323
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U,
24-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
24+
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
2525
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
2626
>callbackfn : Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 14))
2727
>previousValue : Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 27))
@@ -44,9 +44,9 @@ var a: Array<string>;
4444

4545
var r5 = a.reduce((x, y) => x + y);
4646
>r5 : Symbol(r5, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 3))
47-
>a.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
47+
>a.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
4848
>a : Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3))
49-
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
49+
>reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29))
5050
>x : Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19))
5151
>y : Symbol(y, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 21))
5252
>x : Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19))

0 commit comments

Comments
 (0)