leo/tests/parser/statement/conditional.leo

21 lines
185 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 0u8;
2021-03-30 01:45:10 +03:00
}
if (x) {
return 0u8;
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 {
return 0u8;
2022-05-17 15:41:30 +03:00
}