leo/tests/compiler/mutability/cond_mut.leo
2021-07-01 13:40:29 -07:00

16 lines
218 B
Plaintext

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