mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 01:11:32 +00:00
Initial external decorator for annotating explicit import names; Use file name as default module name in imports; Emit empty memory if there are no static segments; Update TLSF and examples accordingly
This commit is contained in:
13
tests/compiler/external.ts
Normal file
13
tests/compiler/external.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export declare function foo(): void; // external.foo
|
||||
export declare namespace foo {
|
||||
export function bar(): void; // foo.bar
|
||||
}
|
||||
|
||||
@external("bar")
|
||||
export declare function two(): void; // external.bar
|
||||
|
||||
@external("foo", "baz")
|
||||
export declare function three(): void; // foo.baz
|
||||
|
||||
@external("foo", "var")
|
||||
export declare const var_: i32;
|
Reference in New Issue
Block a user