mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-24 22:54:59 -07:00
Fix procedure grouping
This commit is contained in:
@@ -999,6 +999,11 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
|
||||
|
||||
if (e->kind == Entity_ProcedureGrouping) {
|
||||
auto *pge = &e->ProcedureGrouping;
|
||||
|
||||
DeclInfo *d = decl_info_of_entity(&c->info, e);
|
||||
check_entity_decl(c, e, d, nullptr);
|
||||
|
||||
|
||||
Entity **procs = pge->entities.data;
|
||||
isize overload_count = pge->entities.count;
|
||||
bool skip = false;
|
||||
|
||||
+1
-1
@@ -1472,7 +1472,7 @@ PtrSet<Entity *> generate_minimum_dependency_set(CheckerInfo *info, Entity *star
|
||||
Entity *e = info->definitions.entries[i].value;
|
||||
// if (e->scope->is_global && !is_type_poly_proc(e->type)) { // TODO(bill): is the check enough?
|
||||
if (e->scope->is_global) { // TODO(bill): is the check enough?
|
||||
if (!is_type_poly_proc(e->type)) {
|
||||
if (e->type == nullptr || !is_type_poly_proc(e->type)) {
|
||||
// NOTE(bill): Require runtime stuff
|
||||
add_dependency_to_map(&map, info, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user