mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-19 16:42:33 +00:00
Allow for struct #raw_union #packed
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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'");
|
||||
|
||||
Reference in New Issue
Block a user