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.
28 lines
727 B
TypeScript
28 lines
727 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////let /*1*/a = 10;
|
|
/////*2*/a = 30;
|
|
////function foo() {
|
|
//// let /*3*/b = 20;
|
|
//// /*4*/b = /*5*/a;
|
|
////}
|
|
|
|
goTo.marker('1');
|
|
verify.quickInfoIs("let a: number");
|
|
|
|
goTo.marker('2');
|
|
verify.completionListContains("a", "let a: number");
|
|
verify.quickInfoIs("let a: number");
|
|
|
|
goTo.marker('3');
|
|
verify.quickInfoIs("let b: number");
|
|
|
|
goTo.marker('4');
|
|
verify.completionListContains("a", "let a: number");
|
|
verify.completionListContains("b", "let b: number");
|
|
verify.quickInfoIs("let b: number");
|
|
|
|
goTo.marker('5');
|
|
verify.completionListContains("a", "let a: number");
|
|
verify.completionListContains("b", "let b: number");
|
|
verify.quickInfoIs("let a: number");
|