aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-25 15:15:35 +0100
committergingerBill <bill@gingerbill.org>2023-07-25 15:15:35 +0100
commit0f217c715ecd9fc265b1c6a3d579b99ecf849139 (patch)
treeaf3a2b1847c5066e89d7c11365c45945800b464d /src/check_expr.cpp
parentc4033c215e01343709a0d7928c277a6425f53524 (diff)
Fix dependency issue; Allow polymorphic procedures in tilde
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 98154f33d..d5e5f7952 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -5985,8 +5985,8 @@ gb_internal bool check_call_arguments_single(CheckerContext *c, Ast *call, Opera
}
Entity *entity_to_use = data->gen_entity != nullptr ? data->gen_entity : e;
+ add_entity_use(c, ident, entity_to_use);
if (!return_on_failure && entity_to_use != nullptr) {
- add_entity_use(c, ident, entity_to_use);
update_untyped_expr_type(c, operand->expr, entity_to_use->type, true);
add_type_and_value(c, operand->expr, operand->mode, entity_to_use->type, operand->value);
}
@@ -7174,6 +7174,7 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
c->decl->defer_used += 1;
}
}
+ add_entity_use(c, operand->expr, initial_entity);
}
if (operand->mode != Addressing_ProcGroup) {