leo/tests/compiler/function/repeated.leo

16 lines
218 B
Plaintext
Raw Normal View History

2021-05-05 18:29:44 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/dummy.in
2021-05-05 18:29:44 +03:00
*/
2020-07-17 06:47:47 +03:00
function one() -> bool {
return true;
}
function main(y: bool) -> bool {
const a: bool = one() && one();
2020-07-30 22:10:33 +03:00
2021-07-01 23:40:29 +03:00
return (a == true) == y;
2021-05-05 18:29:44 +03:00
}