Make #relative types an error in parsing

This commit is contained in:
gingerBill
2024-11-14 16:08:53 +00:00
parent 89a5decc33
commit b3d1d7b835

View File

@@ -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") {