2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////function /*11*/m2f(x: number) { };
|
|
|
|
////module m2f { export interface I { foo(): void } }
|
|
|
|
////var x: m2f./*1*/
|
2014-10-07 00:05:21 +02:00
|
|
|
////var /*2*/r = m2f/*3*/;
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('11');
|
|
|
|
verify.quickInfoIs('(function) m2f(x: number): void\nmodule m2f');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
goTo.marker('1');
|
|
|
|
verify.completionListContains('I');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
2014-10-07 00:05:21 +02:00
|
|
|
edit.insert('I.');
|
|
|
|
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: (x: number) => void');
|
2014-08-30 03:02:05 +02:00
|
|
|
|
|
|
|
goTo.marker('3');
|
|
|
|
edit.insert('(');
|
|
|
|
verify.currentSignatureHelpIs('m2f(x: number): void');
|