mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 17:11:42 +03:00
13 lines
161 B
Plaintext
13 lines
161 B
Plaintext
function one() -> u32 {
|
|
return 1u32
|
|
}
|
|
|
|
function main() {
|
|
let a = 0u32;
|
|
|
|
for i in 0..10 {
|
|
a += one();
|
|
}
|
|
|
|
console.assert(a == 10u32);
|
|
} |