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

3 lines
68 B
Plaintext
Raw Normal View History

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