leo/tests/compiler/mutability/cond_mut.leo

16 lines
226 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: inputs/dummy.in
*/
function main(y: bool) -> bool {
let x: i8 = 100i8;
if false {
x = 1i8;
x = x * 100i8;
}
return (x == 100i8) == y;
}