2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////class clsOverload { constructor(); constructor(test: string); constructor(test?: string) { } }
|
|
|
|
////var x = new clsOverload(/*1*/);
|
|
|
|
////var y = new clsOverload(/*2*/'');
|
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
verify.signatureHelpCountIs(2);
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(0);
|
2014-08-30 03:02:05 +02:00
|
|
|
verify.currentSignatureHelpIs('clsOverload(): clsOverload');
|
|
|
|
|
|
|
|
goTo.marker('2');
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(1);
|
2014-08-30 03:02:05 +02:00
|
|
|
verify.currentSignatureHelpIs('clsOverload(test: string): clsOverload');
|
|
|
|
verify.currentParameterHelpArgumentNameIs('test');
|
|
|
|
verify.currentParameterSpanIs("test: string");
|