TypeScript/tests/cases/fourslash/augmentedTypesModule4.ts
Cyrus Najmabadi eed6f0deca Use an output format for quickinfo that more closely matches the original source.
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.
2015-03-24 00:16:49 -07:00

21 lines
467 B
TypeScript

/// <reference path='fourslash.ts'/>
////module m3d { export var y = 2; }
////declare class m3d { foo(): void }
////var /*1*/r = new m3d();
////r./*2*/
////var /*4*/r2 = m3d./*3*/
goTo.marker('1');
verify.quickInfoIs('var r: m3d');
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');