leo/tests/compiler/statements/block.leo

17 lines
251 B
Plaintext
Raw Normal View History

2021-04-20 04:08:14 +03:00
/*
namespace: Compile
expectation: Pass
2021-05-03 17:28:53 +03:00
input_file: inputs/u32_3.in
2021-04-20 04:08:14 +03:00
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
transition main(x: u32) -> bool {
let y: u32 = x;
{
y = y + 5u32;
}
2021-04-20 04:08:14 +03:00
2022-10-06 02:53:49 +03:00
return y == 8u32;
}}