leo/compiler/tests/integers/u8/ternary.leo
2020-07-17 12:59:18 -07:00

3 lines
70 B
Plaintext

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