2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////class C<T> {
|
|
|
|
//// constructor(x: T) { }
|
|
|
|
//// foo(x: T) {
|
|
|
|
//// return (a: T) => x;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
////var x = new C(1);
|
2014-10-07 20:30:27 +02:00
|
|
|
////var /*2*/r = x.foo(/*1*/3);
|
|
|
|
////var /*4*/r2 = r(/*3*/4);
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
verify.currentSignatureHelpIs('foo(x: number): (a: number) => number');
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
goTo.marker('2');
|
|
|
|
verify.quickInfoIs('(var) r: (a: number) => number');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
|
|
|
verify.currentSignatureHelpIs('r(a: number): number');
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
goTo.marker('4');
|
|
|
|
verify.quickInfoIs('(var) r2: number');
|