2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////function m2g() { };
|
|
|
|
////module m2g { export class C { foo(x: number) { } } }
|
|
|
|
////var x: m2g./*1*/;
|
2014-10-07 00:05:21 +02:00
|
|
|
////var /*2*/r = m2g/*3*/;
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('1');
|
|
|
|
verify.completionListContains('C');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
edit.insert('C.');
|
|
|
|
verify.not.completionListContains('foo');
|
|
|
|
edit.backspace(1);
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('2');
|
|
|
|
verify.quickInfoIs("(var) r: typeof m2g");
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
|
|
|
edit.insert('(');
|
|
|
|
verify.currentSignatureHelpIs('m2g(): void');
|