leo/tests/parser/statement/conditional.leo

25 lines
219 B
Plaintext
Raw Normal View History

2021-03-30 01:45:10 +03:00
/*
2021-04-07 20:01:24 +03:00
namespace: ParseStatement
2021-03-30 01:45:10 +03:00
expectation: Pass
*/
if x {
return ();
}
if Self {
return ();
}
if (x) {
return ();
}
2021-07-09 22:15:29 +03:00
if (x) {} else {}
2021-03-30 01:45:10 +03:00
2021-07-09 22:15:29 +03:00
if x+y {} else if x+z {} else {}
2021-03-30 01:45:10 +03:00
if x+y {
expr;
return ();
}