Namespaced imports

This commit is contained in:
dcodeIO
2017-12-27 22:38:32 +01:00
parent eccac129ad
commit 7795d48d98
13 changed files with 157 additions and 74 deletions

View File

@ -1,3 +1,15 @@
declare function external(): void;
declare function externalFunc(): void;
declare const externalConst: i32;
export { external };
namespace external {
export declare function externalFunc(): void;
export declare const externalConst: i32;
}
export function test(): void {
// cannot be interpreted
externalFunc();
externalConst;
external.externalFunc();
external.externalConst;
}