2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////function foo<T, U>(x: T, y: U): (a: U) => T {
|
|
|
|
//// var z = y;
|
|
|
|
//// return (z) => x;
|
|
|
|
////}
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
////var /*2*/r = foo(/*1*/1, "");
|
|
|
|
////var /*4*/r2 = r(/*3*/"");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-19 03:46:47 +02:00
|
|
|
// goTo.marker('1');
|
|
|
|
// verify.currentSignatureHelpIs('foo(x: number, y: string): (a: string) => number');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
goTo.marker('2');
|
|
|
|
verify.quickInfoIs('(var) r: (a: string) => number');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
|
|
|
verify.currentSignatureHelpIs('r(a: string): number');
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
goTo.marker('4');
|
|
|
|
verify.quickInfoIs('(var) r2: number');
|