leo/tests/compiler/statements/loop_non_literal_bound_fail.leo
2022-10-27 20:17:00 -07:00

25 lines
432 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
record Token {
owner: address,
gates: u64,
amount: u64,
}
transition main(owner: address, amount: u64) -> Token {
let max: u64 = 0u64;
for i:u64 in 0u64..amount {
max = i;
}
return Token {
owner: owner,
gates: 0u64,
amount: amount,
};
}
}