leo/tests/parser/statement/cond_mut.leo
2022-08-01 14:17:55 -07:00

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;
}