2021-01-25 18:17:42 +03:00
|
|
|
function main(a: bool) {
|
2021-03-18 22:19:07 +03:00
|
|
|
let b = 0u32;
|
2021-01-25 18:17:42 +03:00
|
|
|
|
|
|
|
if a {
|
|
|
|
for i in 0..4 {
|
|
|
|
b += i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-18 22:19:07 +03:00
|
|
|
const r: u32 = a ? 6 : 0;
|
2021-01-25 18:17:42 +03:00
|
|
|
|
|
|
|
console.assert(r == b);
|
|
|
|
}
|