2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////declare class m3f { foo(x: number): void }
|
|
|
|
////module m3f { export interface I { foo(): void } }
|
|
|
|
////var x: m3f./*1*/
|
2014-10-07 00:05:21 +02:00
|
|
|
////var /*4*/r = new /*2*/m3f(/*3*/);
|
2014-08-30 03:02:05 +02:00
|
|
|
////r./*5*/
|
|
|
|
////var r2: m3f.I = r;
|
|
|
|
////r2./*6*/
|
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('1');
|
|
|
|
verify.completionListContains('I');
|
2014-11-11 04:19:33 +01:00
|
|
|
verify.not.completionListContains('foo');
|
2014-10-07 00:05:21 +02:00
|
|
|
edit.insert('I;');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('2');
|
|
|
|
verify.completionListContains('m3f');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
|
|
|
verify.currentSignatureHelpIs('m3f(): m3f');
|
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('4');
|
|
|
|
verify.quickInfoIs('(var) r: m3f');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('5');
|
|
|
|
verify.completionListContains('foo');
|
|
|
|
edit.insert('foo(1)');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('6');
|
2014-10-07 00:05:21 +02:00
|
|
|
verify.completionListContains('foo');
|
2014-08-30 03:02:05 +02:00
|
|
|
edit.insert('foo(');
|
2014-10-07 00:05:21 +02:00
|
|
|
verify.currentSignatureHelpIs('foo(): void');
|
2014-08-30 03:02:05 +02:00
|
|
|
|