add_deps_from_child_to_parent always

This commit is contained in:
gingerBill
2023-01-12 15:44:55 +00:00
parent e97bf2ef35
commit 38136e15fc

View File

@@ -1608,10 +1608,7 @@ gb_internal bool check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *de
check_scope_usage(ctx->checker, ctx->scope);
if (decl->entity == nullptr) {
// Only care about nested procedure literals
add_deps_from_child_to_parent(decl);
}
add_deps_from_child_to_parent(decl);
return true;
}