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