2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////interface IFoo { }
|
|
|
|
////
|
|
|
|
////function testFunction<T extends IFoo, U, M extends IFoo>(a: T, b: U, c: M): M {
|
|
|
|
//// return null;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////// Function calls
|
|
|
|
////testFunction</*1*/
|
|
|
|
////testFunction<any, /*2*/
|
|
|
|
////testFunction<any, any, any>(/*3*/
|
|
|
|
////testFunction<any, any,/*4*/ any>(null, null, null);
|
|
|
|
////testFunction<, ,/*5*/>(null, null, null);
|
|
|
|
|
2014-09-19 03:46:47 +02:00
|
|
|
// goTo.marker("1");
|
2014-11-19 20:55:05 +01:00
|
|
|
// verify.currentSignatureParameterCountIs(3);
|
2014-09-19 03:46:47 +02:00
|
|
|
// verify.currentSignatureHelpIs("testFunction<T extends IFoo, U, M extends IFoo>(a: T, b: U, c: M): M");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-19 03:46:47 +02:00
|
|
|
// verify.currentParameterHelpArgumentNameIs("T");
|
|
|
|
// verify.currentParameterSpanIs("T extends IFoo");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-09-19 03:46:47 +02:00
|
|
|
// goTo.marker("2");
|
|
|
|
// verify.currentParameterHelpArgumentNameIs("U");
|
|
|
|
// verify.currentParameterSpanIs("U");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-02 02:10:10 +02:00
|
|
|
goTo.marker("3");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("a");
|
|
|
|
verify.currentParameterSpanIs("a: T");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-02 02:10:10 +02:00
|
|
|
goTo.marker("4");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("M");
|
|
|
|
verify.currentParameterSpanIs("M extends IFoo");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-02 02:10:10 +02:00
|
|
|
goTo.marker("5");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("M");
|
2014-10-02 21:21:06 +02:00
|
|
|
verify.currentParameterSpanIs("M extends IFoo");
|