2014-09-22 23:49:33 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////declare function fn(x: string);
|
|
|
|
////declare function fn(x: string, y: number);
|
|
|
|
////declare function fn2(x: string);
|
|
|
|
////declare function fn2(x: string, y: number);
|
|
|
|
////fn('', fn2(/*1*/
|
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
verify.signatureHelpCountIs(2);
|
|
|
|
verify.currentSignatureHelpIs("fn2(x: string): any");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("x");
|
|
|
|
verify.currentParameterSpanIs("x: string");
|
|
|
|
|
|
|
|
edit.insert("'',");
|
|
|
|
|
|
|
|
verify.signatureHelpCountIs(2);
|
2014-10-02 02:10:10 +02:00
|
|
|
verify.currentSignatureHelpIs("fn2(x: string, y: number): any");
|
|
|
|
verify.currentParameterHelpArgumentNameIs("y");
|
|
|
|
verify.currentParameterSpanIs("y: number");
|