leo/tests/compiler/mutability/cond_mut.leo

16 lines
216 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(y: bool) -> bool {
2021-03-25 18:19:42 +03:00
let x = 100i8;
2021-03-24 01:49:56 +03:00
if false {
x = 1i8;
x *= 100i8;
}
2021-05-05 18:29:44 +03:00
return x == 100i8 == y;
2021-05-05 18:29:44 +03:00
}