LYR-PAR0005
range operators chained
A range a..b or a..=b is followed by another range operator, as in 1..5..9.
Explanation
The range operators have no associativity: a..b..c would be a range whose bound is a range, or the other way round, and neither is a value the language has.
Write one range with both of its bounds.
Wrong
fn main(): void {
let r = 1..5..9;
}
Right
fn main(): void {
let r = 1..9;
let _ = r;
}