leo/compiler/tests/integers/u8/ternary.leo

3 lines
70 B
Plaintext
Raw Normal View History

2020-06-06 02:35:50 +03:00
function main(b: bool, x: u8, y: u8) -> u8 {
2020-07-17 22:59:18 +03:00
return if b ? x : y
2020-06-06 02:35:50 +03:00
}