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.
22 lines
469 B
TypeScript
22 lines
469 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////declare class m3e { foo(): void }
|
|
////module m3e { export var y = 2; }
|
|
////var /*1*/r = new m3e();
|
|
////r./*2*/
|
|
////var /*4*/r2 = m3e./*3*/
|
|
|
|
goTo.marker('1');
|
|
verify.quickInfoIs('var r: m3e');
|
|
|
|
goTo.marker('2');
|
|
verify.completionListContains('foo');
|
|
|
|
edit.insert('foo();');
|
|
|
|
goTo.marker('3');
|
|
verify.completionListContains('y');
|
|
edit.insert('y;');
|
|
|
|
goTo.marker('4');
|
|
verify.quickInfoIs('var r2: number');
|