TypeScript/tests/cases/compiler/genericContextualTypingSpecialization.ts
2014-07-12 17:30:19 -07:00

2 lines
81 B
TypeScript

var b: number[];
b.reduce<number>((c, d) => c + d, 0); // should not error on '+'