mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 16:31:32 +00:00
Initial implementation if ugc, see #16; Fix tests
This commit is contained in:
@ -6,14 +6,23 @@ function sub(a: i32, b: i32): i32 {
|
||||
return a - b;
|
||||
}
|
||||
|
||||
export { sub as renamed_sub };
|
||||
export { sub };
|
||||
|
||||
function mul(a: i32, b: i32): i32 { // not exported as "mul"
|
||||
return a * b;
|
||||
}
|
||||
|
||||
export { mul as renamed_mul };
|
||||
|
||||
export const a: i32 = 1;
|
||||
|
||||
const b: i32 = 2;
|
||||
b;
|
||||
|
||||
export { b as renamed_b };
|
||||
export { b };
|
||||
|
||||
const c: i32 = 3; // not exported as "c"
|
||||
|
||||
export { c as renamed_c };
|
||||
|
||||
export namespace ns {
|
||||
function one(): void {}
|
||||
|
Reference in New Issue
Block a user