2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////var anonymousFunctionTest = function(n: number, s: string): (a: number, b: string) => string {
|
|
|
|
//// return null;
|
|
|
|
////}
|
|
|
|
////anonymousFunctionTest(5, "")(/*anonymousFunction1*/1, /*anonymousFunction2*/"");
|
|
|
|
|
|
|
|
goTo.marker('anonymousFunction1');
|
|
|
|
verify.signatureHelpCountIs(1);
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(2);
|
2014-08-30 03:02:05 +02:00
|
|
|
verify.currentSignatureHelpIs('(a: number, b: string): string');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("a");
|
|
|
|
verify.currentParameterSpanIs("a: number");
|
|
|
|
|
|
|
|
goTo.marker('anonymousFunction2');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("b");
|
|
|
|
verify.currentParameterSpanIs("b: string");
|