2014-07-13 01:04:16 +02:00
|
|
|
//// [genericContextualTypingSpecialization.ts]
|
|
|
|
var b: number[];
|
|
|
|
b.reduce<number>((c, d) => c + d, 0); // should not error on '+'
|
|
|
|
|
|
|
|
//// [genericContextualTypingSpecialization.js]
|
|
|
|
var b;
|
2014-08-16 00:49:09 +02:00
|
|
|
b.reduce(function (c, d) { return c + d; }, 0); // should not error on '+'
|