2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////interface Accumulator {
|
|
|
|
//// clear(): void;
|
|
|
|
//// add(x: number): void;
|
|
|
|
//// result(): number;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////function makeAccumulator(): Accumulator {
|
|
|
|
//// var sum = 0;
|
|
|
|
//// return {
|
|
|
|
//// clear: function () { sum = 0; },
|
|
|
|
//// add: function (val/**/ue) { sum += value; },
|
|
|
|
//// result: function () { return sum; }
|
|
|
|
//// };
|
|
|
|
////}
|
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfoAt("", "(parameter) value: number");
|