///
////interface Collection {
//// length: number;
//// add(x: T, y: U): void ;
//// remove(x: T, y: U): boolean;
////}
////}
////interface Combinators {
//// map(c: Collection, f: (x: T, y: U) => V): Collection;
//// map(c: Collection, f: (x: T, y: U) => any): Collection;
////}
////}
////class A {
//// foo(): T { return null; }
////}
////}
////class B {
//// foo(x: T): T { return null; }
////}
////}
////var c1: Collection;
////var c2: Collection;
////var c3: Collection, string>;
////var c4: Collection;
////var c5: Collection>;
////}
////var _: Combinators;
////// param help on open paren for arg 2 should show 'number' not T or 'any'
////// x should be contextually typed to number
////var rf1 = (x: number, y: string) => { return x.toFixed() };
////var rf2 = (x: Collection, y: string) => { return x.length };
////var rf3 = (x: number, y: A) => { return y.foo() };
////}
////var /*9*/r1a = _.map/*1c*/(c2, (/*1a*/x, /*1b*/y) => { return x.toFixed() });
////var /*10*/r1b = _.map(c2, rf1);
////}
////var /*11*/r2a = _.map(c3, (/*2a*/x, /*2b*/y) => { return x.length });
////var /*12*/r2b = _.map(c3, rf2);
////}
////var /*13*/r3a = _.map(c4, (/*3a*/x, /*3b*/y) => { return y.foo() });
////var /*14*/r3b = _.map(c4, rf3);
////}
////var /*15*/r4a = _.map(c5, (/*4a*/x, /*4b*/y) => { return y.foo() });
////}
////var /*17*/r5a = _.map(c2, /*17error1*/(/*5a*/x, /*5b*/y) => { return x.toFixed() }/*17error2*/);
////var rf1b = (x: number, y: string) => { return new Date() };
////var /*18*/r5b = _.map(c2, rf1b);
////
////var /*19*/r6a = _.map, string, Date>(c3, (/*6a*/x,/*6b*/y) => { return new Date(); });
////var rf2b = (x: Collection, y: string) => { return new Date(); };
////var /*20*/r6b = _.map, string, Date>(c3, rf2b);
////
////var /*21*/r7a = _.map(c4, /*21error1*/(/*7a*/x,/*7b*/y) => { return y.foo() }/*21error2*/);
////var /*22*/r7b = _.map(c4, /*22error1*/rf3/*22error2*/);
////
////var /*23*/r8a = _.map(c5, (/*8a*/x,/*8b*/y) => { return y.foo() });
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
edit.insert('');
goTo.marker('2a');
verify.quickInfoIs('(parameter) x: Collection');
goTo.marker('2b');
verify.quickInfoIs('(parameter) y: string');
goTo.marker('3a');
verify.quickInfoIs('(parameter) x: number');
goTo.marker('3b');
verify.quickInfoIs('(parameter) y: A');
goTo.marker('4a');
verify.quickInfoIs('(parameter) x: number');
goTo.marker('4b');
verify.quickInfoIs('(parameter) y: B');
goTo.marker('5a');
verify.quickInfoIs('(parameter) x: number');
goTo.marker('5b');
verify.quickInfoIs('(parameter) y: string');
goTo.marker('6a');
verify.quickInfoIs('(parameter) x: Collection');
goTo.marker('6b');
verify.quickInfoIs('(parameter) y: string');
goTo.marker('7a');
verify.quickInfoIs('(parameter) x: number');
goTo.marker('7b');
verify.quickInfoIs('(parameter) y: A');
goTo.marker('8a');
verify.quickInfoIs('(parameter) x: number');
goTo.marker('8b');
verify.quickInfoIs('(parameter) y: any'); // Specialized to any because no type argument was specified
goTo.marker('9');
verify.quickInfoIs('(var) r1a: Collection');
goTo.marker('10');
verify.quickInfoIs('(var) r1b: Collection');
goTo.marker('11');
verify.quickInfoIs('(var) r2a: Collection, number>');
goTo.marker('12');
verify.quickInfoIs('(var) r2b: Collection, number>');
goTo.marker('13');
verify.quickInfoIs('(var) r3a: Collection');
goTo.marker('14');
verify.quickInfoIs('(var) r3b: Collection');
goTo.marker('15');
verify.quickInfoIs('(var) r4a: Collection');
goTo.marker('17');
verify.quickInfoIs('(var) r5a: Collection'); // This is actually due to an error because toFixed does not return a Date
goTo.marker('18');
verify.quickInfoIs('(var) r5b: Collection');
goTo.marker('19');
verify.quickInfoIs('(var) r6a: Collection, Date>');
goTo.marker('20');
verify.quickInfoIs('(var) r6b: Collection, Date>');
goTo.marker('21');
verify.quickInfoIs('(var) r7a: Collection'); // This call is an error because y.foo() does not return a string
goTo.marker('22');
verify.quickInfoIs('(var) r7b: Collection'); // This call is an error because y.foo() does not return a string
goTo.marker('23');
verify.quickInfoIs('(var) r8a: Collection');
verify.errorExistsBetweenMarkers('error1', 'error2');
verify.errorExistsBetweenMarkers('17error1', '17error2');
verify.errorExistsBetweenMarkers('21error1', '21error2');
verify.errorExistsBetweenMarkers('22error1', '22error2');