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

23 lines
491 B
TypeScript

/// <reference path="fourslash.ts"/>
////var x = 1;
////module M {
//// export var x = 2;
//// console.log(/*1*/x); // 2
////}
////module M {
//// console.log(/*2*/x); // 2
////}
////module M {
//// var x = 3;
//// console.log(/*3*/x); // 3
////}
goTo.marker('1');
verify.quickInfoIs("var M.x: number", undefined);
goTo.marker('2');
verify.quickInfoIs("var M.x: number", undefined);
goTo.marker('3');
verify.quickInfoIs("var x: number", undefined);