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