2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////function functionOverload();
|
|
|
|
////function functionOverload(test: string);
|
|
|
|
////function functionOverload(test?: string) { }
|
|
|
|
////functionOverload(/*functionOverload1*/);
|
|
|
|
////functionOverload(""/*functionOverload2*/);
|
|
|
|
|
|
|
|
goTo.marker('functionOverload1');
|
|
|
|
verify.signatureHelpCountIs(2);
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(0);
|
2014-08-30 03:02:05 +02:00
|
|
|
verify.currentSignatureHelpIs('functionOverload(): any');
|
|
|
|
|
|
|
|
goTo.marker('functionOverload2');
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(1);
|
2014-08-30 03:02:05 +02:00
|
|
|
verify.currentSignatureHelpIs('functionOverload(test: string): any');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("test");
|
|
|
|
verify.currentParameterSpanIs("test: string");
|