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.
33 lines
774 B
TypeScript
33 lines
774 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////declare class m3f { foo(x: number): void }
|
|
////module m3f { export interface I { foo(): void } }
|
|
////var x: m3f./*1*/
|
|
////var /*4*/r = new /*2*/m3f(/*3*/);
|
|
////r./*5*/
|
|
////var r2: m3f.I = r;
|
|
////r2./*6*/
|
|
|
|
goTo.marker('1');
|
|
verify.completionListContains('I');
|
|
verify.not.completionListContains('foo');
|
|
edit.insert('I;');
|
|
|
|
goTo.marker('2');
|
|
verify.completionListContains('m3f');
|
|
|
|
goTo.marker('3');
|
|
verify.currentSignatureHelpIs('m3f(): m3f');
|
|
|
|
goTo.marker('4');
|
|
verify.quickInfoIs('var r: m3f');
|
|
|
|
goTo.marker('5');
|
|
verify.completionListContains('foo');
|
|
edit.insert('foo(1)');
|
|
|
|
goTo.marker('6');
|
|
verify.completionListContains('foo');
|
|
edit.insert('foo(');
|
|
verify.currentSignatureHelpIs('foo(): void');
|
|
|