leo/tests/parser/statement/conditional.leo
2021-07-09 12:15:29 -07:00

25 lines
219 B
Plaintext

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