leo/tests/parser/statement/iteration.leo

18 lines
197 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
*/
2022-03-07 19:30:03 +03:00
for x: u8 in 0..7 {}
2021-03-30 01:45:10 +03:00
2022-03-07 19:30:03 +03:00
for x: i64 in 0..7 {
2021-03-30 01:45:10 +03:00
return ();
}
2022-03-07 19:30:03 +03:00
for x: field in 0..99u8 {
2021-03-30 01:45:10 +03:00
return ();
}
2022-03-07 19:30:03 +03:00
for x: bool in 0..Self {
2021-03-30 01:45:10 +03:00
return ();
}