mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #raw_union bug #306
This commit is contained in:
@@ -327,6 +327,9 @@ void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast *node, Array<
|
|||||||
case_ast_node(f, ValueDecl, field);
|
case_ast_node(f, ValueDecl, field);
|
||||||
min_field_count += f->names.count;
|
min_field_count += f->names.count;
|
||||||
case_end;
|
case_end;
|
||||||
|
case_ast_node(f, Field, field);
|
||||||
|
min_field_count += f->names.count;
|
||||||
|
case_end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
struct_type->Struct.names = make_names_field_for_struct(ctx, ctx->scope);
|
struct_type->Struct.names = make_names_field_for_struct(ctx, ctx->scope);
|
||||||
|
|||||||
Reference in New Issue
Block a user