leo/tests/compiler/mutability/let_mut_nested.leo

13 lines
185 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
2021-05-05 18:29:44 +03:00
input_file: input/dummy.in
2021-05-03 17:28:53 +03:00
*/
function main(a: bool) -> bool {
let x = 2u8;
let y = x;
2021-05-06 14:27:42 +03:00
let z = y / 2u8;
2021-07-01 23:40:29 +03:00
return (z == 1) == a;
2021-05-05 18:29:44 +03:00
}