mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 15:27:06 -04:00
Fix compound literals for constant procedure fields
This commit is contained in:
1 parent
82b559c32b
commit
01d12770fa
3 files changed
+46
-26
No files matched your search
@@ -7761,6 +7761,9 @@ bool check_range(CheckerContext *c, Ast *node, Operand *x, Operand *y, ExactValu
|
||||
}
|
||||
|
||||
bool check_is_operand_compound_lit_constant(CheckerContext *c, Operand *o) {
|
||||
if (is_operand_nil(*o)) {
|
||||
return true;
|
||||
}
|
||||
Ast *expr = unparen_expr(o->expr);
|
||||
if (expr != nullptr) {
|
||||
Entity *e = strip_entity_wrapping(entity_from_expr(expr));
|
||||
|
||||
Reference in new issue
Block a user