mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Make .. ranges a complete error rather than a warning now.
This should have been an error years ago.
This commit is contained in:
@@ -1572,7 +1572,7 @@ gb_internal Token expect_operator(AstFile *f) {
|
||||
LIT(p));
|
||||
}
|
||||
if (prev.kind == Token_Ellipsis) {
|
||||
syntax_warning(prev, "'..' for ranges has now been deprecated, prefer '..='");
|
||||
syntax_error(prev, "'..' for ranges are not allowed, did you mean '..<' or '..='?");
|
||||
f->tokens[f->curr_token_index].flags |= TokenFlag_Replace;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user