leo/tests/parser/statement/conditional.leo

21 lines
188 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 {
2022-03-28 20:35:36 +03:00
return 0;
2021-03-30 01:45:10 +03:00
}
if (x) {
2022-03-28 20:35:36 +03:00
return 0;
2021-03-30 01:45:10 +03:00
}
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;
2022-03-28 20:35:36 +03:00
return 0;
2021-03-30 01:45:10 +03:00
}