mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 03:42:23 -07:00
Fix addressing mode rules for match in statements
This commit is contained in:
@@ -1142,6 +1142,9 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
|
||||
return e;
|
||||
}
|
||||
o->mode = Addressing_Variable;
|
||||
if (e->flags & EntityFlag_Value) {
|
||||
o->mode = Addressing_Value;
|
||||
}
|
||||
if (e->Variable.is_immutable) {
|
||||
o->mode = Addressing_Immutable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user