2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
2014-10-01 00:26:39 +02:00
|
|
|
|
|
|
|
////declare function f();
|
|
|
|
////declare function f(s: string);
|
|
|
|
////declare function f(s: string, b: boolean);
|
|
|
|
////declare function f(n: number, b: boolean);
|
|
|
|
////
|
|
|
|
////f(/**/
|
|
|
|
|
2018-05-15 21:34:53 +02:00
|
|
|
verify.signatureHelp({
|
|
|
|
marker: "",
|
|
|
|
overloadsCount: 4,
|
|
|
|
text: "f(): any",
|
|
|
|
parameterCount: 0,
|
|
|
|
argumentCount: 0,
|
|
|
|
});
|
2014-10-01 00:26:39 +02:00
|
|
|
|
2018-01-08 19:38:55 +01:00
|
|
|
edit.insert("x, ");
|
2018-05-15 21:34:53 +02:00
|
|
|
verify.signatureHelp({
|
|
|
|
overloadsCount: 4,
|
|
|
|
text: "f(s: string, b: boolean): any",
|
|
|
|
parameterCount: 2,
|
|
|
|
parameterName: "b",
|
|
|
|
parameterSpan: "b: boolean",
|
|
|
|
});
|
2014-10-01 00:26:39 +02:00
|
|
|
|
2018-01-08 19:38:55 +01:00
|
|
|
edit.insert("x, ");
|
2018-05-15 21:34:53 +02:00
|
|
|
verify.signatureHelp({
|
|
|
|
overloadsCount: 4,
|
|
|
|
text: "f(s: string, b: boolean): any",
|
|
|
|
parameterCount: 2,
|
|
|
|
});
|