2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////class Collection<T> {
|
|
|
|
//// public add(x: T) { }
|
|
|
|
|
|
|
|
////}
|
|
|
|
////interface Utils {
|
|
|
|
//// fold<T, S>(c: Collection<T>, folder: (s: S, t: T) => T, init?: S): T;
|
|
|
|
////}
|
|
|
|
////var c = new Collection<string>();
|
|
|
|
////var utils: Utils;
|
2014-10-07 20:30:27 +02:00
|
|
|
////var /*1*/r = utils.fold(c, (s, t) => t, "");
|
|
|
|
////var /*2*/r2 = utils.fold(c, (s, t) => t);
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
1: "var r: string",
|
|
|
|
2: "var r2: string"
|
|
|
|
});
|