mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
11 lines
169 B
Plaintext
11 lines
169 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: inputs/ternary_explicit_and_implicit.in
|
|
*/
|
|
|
|
@program
|
|
function main(x: u8, y: bool) -> u8 {
|
|
return y ? x : 2u8;
|
|
}
|