Allow for struct #raw_union #packed

This commit is contained in:
gingerBill
2026-06-15 14:42:38 +01:00
parent 182f234ed2
commit 693fc1ec18
2 changed files with 0 additions and 9 deletions

View File

@@ -2805,11 +2805,6 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
}
p.expr_level = prev_level
if is_raw_union && is_packed {
is_packed = false
error(p, tok.pos, "'#raw_union' cannot also be '#packed")
}
if is_raw_union && is_all_or_none {
is_all_or_none = false
error(p, tok.pos, "'#raw_union' cannot also be '#all_or_none")

View File

@@ -2894,10 +2894,6 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
f->expr_level = prev_level;
if (is_raw_union && is_packed) {
is_packed = false;
syntax_error(token, "'#raw_union' cannot also be '#packed'");
}
if (is_raw_union && is_all_or_none) {
is_all_or_none = false;
syntax_error(token, "'#raw_union' cannot also be '#all_or_none'");