leo/tests/parser/statement/conditional.leo

21 lines
194 B
Plaintext

/*
namespace: ParseStatement
expectation: Pass
*/
if x {
return 0u8;
}
if (x) {
return 0u8;
}
if (x) {} else {}
if x+y {} else if x+z {} else {}
if x+y {
expr;
return 0u8;
}