leo/tests/parser/functions/bounded_recursion.leo
2022-01-28 10:34:02 -08:00

15 lines
173 B
Plaintext

/*
namespace: Parse
expectation: Pass
*/
function x(const y: u32) {
if y < 5u32 {
x(y+1);
}
}
function main(y: bool) -> bool {
x(1u32);
return y;
}