mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 15:31:31 +00:00
Namespaced imports
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user