mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-06 13:07:59 +00:00
Fix union array bug (Issue #112)
This commit is contained in:
@@ -7677,7 +7677,8 @@ ExprKind check_expr_base_internal(Checker *c, Operand *o, AstNode *node, Type *t
|
||||
isize index = 0;
|
||||
isize elem_count = cl->elems.count;
|
||||
|
||||
if (is_type_any(base_type(elem_type))) {
|
||||
Type *bet = base_type(elem_type);
|
||||
if (!elem_type_can_be_constant(bet)) {
|
||||
is_constant = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user