TypeScript/tests/cases/fourslash/signatureHelpSimpleConstructorCall.ts

23 lines
643 B
TypeScript
Raw Normal View History

2014-08-30 03:02:05 +02:00
/// <reference path='fourslash.ts' />
////class ConstructorCall {
2014-08-30 03:02:05 +02:00
//// constructor(str: string, num: number) {
//// }
////}
2015-03-02 23:41:44 +01:00
////var x = new ConstructorCall(/*constructorCall1*/1,/*constructorCall2*/2);
verify.signatureHelp(
{
marker: "constructorCall1",
text: "ConstructorCall(str: string, num: number): ConstructorCall",
parameterName: "str",
parameterSpan: "str: string",
},
{
marker: "constructorCall2",
text: "ConstructorCall(str: string, num: number): ConstructorCall",
parameterName: "num",
parameterSpan: "num: number",
},
);