leo/compiler/tests/integers/i8/ternary.leo
2020-07-15 20:42:57 -07:00

3 lines
68 B
Plaintext

function main(b: bool, x: i8, y: i8) -> i8 {
return if b ? x : y
}