1
1
=== tests/cases/compiler/duplicateOverloadInTypeAugmentation1.ts ===
2
2
interface Array<T> {
3
- >Array : Symbol(Array, Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 0 ), Decl(lib.d.ts, 1000, 23 ), Decl(lib.d. ts, 1171, 11 ))
4
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
3
+ >Array : Symbol(Array, Decl(lib.d. ts, 1000, 23 ), Decl(lib.d.ts, 1171, 11 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 0 ))
4
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
5
5
6
6
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T,
7
- >reduce : Symbol(reduce, Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ), Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ))
7
+ >reduce : Symbol(reduce, Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ))
8
8
>callbackfn : Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 11))
9
9
>previousValue : Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 24))
10
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
10
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
11
11
>currentValue : Symbol(currentValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 41))
12
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
12
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
13
13
>currentIndex : Symbol(currentIndex, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 58))
14
14
>array : Symbol(array, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 80))
15
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
16
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
15
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
16
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
17
17
18
18
initialValue?: T): T;
19
19
>initialValue : Symbol(initialValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 98))
20
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
21
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
20
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
21
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
22
22
23
23
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U,
24
- >reduce : Symbol(reduce, Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ), Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ))
24
+ >reduce : Symbol(reduce, Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ))
25
25
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
26
26
>callbackfn : Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 14))
27
27
>previousValue : Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 27))
28
28
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
29
29
>currentValue : Symbol(currentValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 44))
30
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
30
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
31
31
>currentIndex : Symbol(currentIndex, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 61))
32
32
>array : Symbol(array, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 83))
33
- >T : Symbol(T, Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16), Decl(lib.d. ts, 1007 , 16))
33
+ >T : Symbol(T, Decl(lib.d. ts, 1007 , 16), Decl(duplicateOverloadInTypeAugmentation1. ts, 0 , 16))
34
34
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
35
35
36
36
initialValue: U): U;
@@ -40,13 +40,13 @@ interface Array<T> {
40
40
}
41
41
var a: Array<string>;
42
42
>a : Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3))
43
- >Array : Symbol(Array, Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 0 ), Decl(lib.d.ts, 1000, 23 ), Decl(lib.d. ts, 1171, 11 ))
43
+ >Array : Symbol(Array, Decl(lib.d. ts, 1000, 23 ), Decl(lib.d.ts, 1171, 11 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 0 ))
44
44
45
45
var r5 = a.reduce((x, y) => x + y);
46
46
>r5 : Symbol(r5, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 3))
47
- >a.reduce : Symbol(Array.reduce, Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ), Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ))
47
+ >a.reduce : Symbol(Array.reduce, Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ))
48
48
>a : Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3))
49
- >reduce : Symbol(Array.reduce, Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ), Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ))
49
+ >reduce : Symbol(Array.reduce, Decl(lib.d. ts, 1129, 93 ), Decl(lib.d. ts, 1136, 120 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 0, 20 ), Decl(duplicateOverloadInTypeAugmentation1. ts, 2, 29 ))
50
50
>x : Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19))
51
51
>y : Symbol(y, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 21))
52
52
>x : Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19))
0 commit comments