1
1
mirror of https://github.com/ProvableHQ/leo.git synced 2024-12-27 20:24:52 +03:00
leo/asg/tests/pass/integers/i8/ternary.leo
2021-01-25 07:19:38 -08:00

5 lines
102 B
Plaintext

function main(s: bool, a: i8, b: i8, c: i8) {
let r = if s ? a : b;
console.assert(r == c);
}