21 lines
553 B
TypeScript
21 lines
553 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// @Filename: mod.ts
|
|
//// function foo() { return 42; }
|
|
//// namespace foo {
|
|
//// export function bar (a: string) { return a; }
|
|
//// }
|
|
//// export = foo;
|
|
|
|
// @Filename: app.ts
|
|
//// import * as foo from "./mod"
|
|
//// foo/*1*/();
|
|
//// foo.bar(/*2*/"test");
|
|
|
|
goTo.marker('1');
|
|
|
|
/**** BUG: Should be an error to invoke a call signature on a namespace import ****/
|
|
//verify.errorExistsBeforeMarker('1');
|
|
verify.quickInfoIs("(alias) foo(): number\nimport foo");
|
|
goTo.marker('2');
|
|
verify.signatureHelpArgumentCountIs(1);
|