mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-01 08:19:32 +03:00
18 lines
311 B
Plaintext
18 lines
311 B
Plaintext
|
/*
|
||
|
namespace: Compile
|
||
|
expectation: Pass
|
||
|
*/
|
||
|
|
||
|
program test.aleo {
|
||
|
transition main(id_type: u8) -> bool {
|
||
|
if (id_type == 1u8) {
|
||
|
return true;
|
||
|
}
|
||
|
if (id_type == 2u8) {
|
||
|
console.assert(0u8 > id_type);
|
||
|
return false;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|