2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////declare class m3e { foo(): void }
|
|
|
|
////module m3e { export var y = 2; }
|
2014-10-07 00:05:21 +02:00
|
|
|
////var /*1*/r = new m3e();
|
2014-07-13 01:04:16 +02:00
|
|
|
////r./*2*/
|
2014-10-07 00:05:21 +02:00
|
|
|
////var /*4*/r2 = m3e./*3*/
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('1');
|
2014-10-07 00:05:21 +02:00
|
|
|
verify.quickInfoIs('(var) r: m3e');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('2');
|
|
|
|
verify.completionListContains('foo');
|
|
|
|
|
|
|
|
edit.insert('foo();');
|
|
|
|
|
|
|
|
goTo.marker('3');
|
|
|
|
verify.completionListContains('y');
|
|
|
|
edit.insert('y;');
|
|
|
|
|
|
|
|
goTo.marker('4');
|
2014-10-07 00:05:21 +02:00
|
|
|
verify.quickInfoIs('(var) r2: number');
|