TypeScript/tests/cases/fourslash/augmentedTypesModule5.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

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');