14 lines
755 B
Text
14 lines
755 B
Text
|
=== tests/cases/compiler/genericContextualTypingSpecialization.ts ===
|
||
|
var b: number[];
|
||
|
>b : Symbol(b, Decl(genericContextualTypingSpecialization.ts, 0, 3))
|
||
|
|
||
|
b.reduce<number>((c, d) => c + d, 0); // should not error on '+'
|
||
|
>b.reduce : Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120))
|
||
|
>b : Symbol(b, Decl(genericContextualTypingSpecialization.ts, 0, 3))
|
||
|
>reduce : Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120))
|
||
|
>c : Symbol(c, Decl(genericContextualTypingSpecialization.ts, 1, 18))
|
||
|
>d : Symbol(d, Decl(genericContextualTypingSpecialization.ts, 1, 20))
|
||
|
>c : Symbol(c, Decl(genericContextualTypingSpecialization.ts, 1, 18))
|
||
|
>d : Symbol(d, Decl(genericContextualTypingSpecialization.ts, 1, 20))
|
||
|
|