mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
9 lines
149 B
TypeScript
9 lines
149 B
TypeScript
const constantGlobal = 1;
|
|
|
|
export function test(): i32 {
|
|
const constantLocal = 2;
|
|
return constantGlobal + constantLocal;
|
|
}
|
|
|
|
assert(test() == 3);
|