diff options
| author | gingerBill <bill@gingerbill.org> | 2024-11-14 16:08:53 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-11-14 16:08:53 +0000 |
| commit | b3d1d7b835fa5b05620f91420838e4dcdee65dfd (patch) | |
| tree | 40e5ebacb7a779c92b18b0bc872533b99c36f379 | |
| parent | 89a5decc33e532eca4ae3739ae89db508a700a8d (diff) | |
Make `#relative` types an error in parsing
| -rw-r--r-- | src/parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 9d8b0d231..aa90651d3 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2488,6 +2488,7 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) { tag = parse_call_expr(f, tag); } Ast *type = parse_type(f); + syntax_error(tag, "#relative types have now been removed in favour of \"core:relative\""); return ast_relative_type(f, tag, type); } else if (name.string == "force_inline" || name.string == "force_no_inline") { |