mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 23:41:38 +03:00
14 lines
176 B
Plaintext
14 lines
176 B
Plaintext
function main(a: bool) {
|
|
let mut b = 0u32;
|
|
|
|
if a {
|
|
for i in 0..4 {
|
|
b += i;
|
|
}
|
|
}
|
|
|
|
let r: u32 = if a ? 6 : 0;
|
|
|
|
assert_eq!(r, b);
|
|
}
|