54 lines
4.1 KiB
Text
54 lines
4.1 KiB
Text
=== tests/cases/compiler/duplicateOverloadInTypeAugmentation1.ts ===
|
|
interface Array<T> {
|
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T,
|
|
>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))
|
|
>callbackfn : Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 11))
|
|
>previousValue : Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 24))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
>currentValue : Symbol(currentValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 41))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
>currentIndex : Symbol(currentIndex, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 58))
|
|
>array : Symbol(array, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 80))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
|
|
initialValue?: T): T;
|
|
>initialValue : Symbol(initialValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 98))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U,
|
|
>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))
|
|
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
|
|
>callbackfn : Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 14))
|
|
>previousValue : Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 27))
|
|
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
|
|
>currentValue : Symbol(currentValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 44))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
>currentIndex : Symbol(currentIndex, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 61))
|
|
>array : Symbol(array, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 83))
|
|
>T : Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16))
|
|
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
|
|
|
|
initialValue: U): U;
|
|
>initialValue : Symbol(initialValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 101))
|
|
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
|
|
>U : Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11))
|
|
}
|
|
var a: Array<string>;
|
|
>a : Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3))
|
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 0))
|
|
|
|
var r5 = a.reduce((x, y) => x + y);
|
|
>r5 : Symbol(r5, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 3))
|
|
>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))
|
|
>a : Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3))
|
|
>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))
|
|
>x : Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19))
|
|
>y : Symbol(y, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 21))
|
|
>x : Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19))
|
|
>y : Symbol(y, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 21))
|
|
|