leo/compiler/tests/integers/u8/ternary.leo
2020-06-07 21:26:49 -07:00

3 lines
68 B
Plaintext

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