mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 04:01:46 +00:00
Better testing infrastructure; Initial exports/imports/re-exports
This commit is contained in:
15
tests/compiler/export.ts
Normal file
15
tests/compiler/export.ts
Normal file
@ -0,0 +1,15 @@
|
||||
export function add(a: i32, b: i32): i32 {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
function sub(a: i32, b: i32): i32 {
|
||||
return a - b;
|
||||
}
|
||||
|
||||
export { sub as renamed_sub };
|
||||
|
||||
export let a: i32 = 1;
|
||||
|
||||
let b: i32 = 2;
|
||||
|
||||
export { b as renamed_b };
|
Reference in New Issue
Block a user