i.e. use "var v: string" instead of "(var) v: string". The parens case should only be used when we're using an english description instead of an actual language construct.
12 lines
No EOL
290 B
TypeScript
12 lines
No EOL
290 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////declare var /*1*/f: (x: number) => number;
|
|
////function baz() {
|
|
//// var x = /*2*/f(3);
|
|
//// /*3*/f(3);
|
|
////}
|
|
|
|
[1, 2, 3].forEach((val) => {
|
|
goTo.marker("" + val);
|
|
verify.quickInfoIs("var f: (x: number) => number", "");
|
|
} ); |