aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-26 19:46:42 +0100
committergingerBill <bill@gingerbill.org>2021-04-26 19:46:42 +0100
commita38586420cd2d8534a7be83851d8ca174cce1bcb (patch)
tree1640bdc8740d0fa6fbdd8231b5cd0235727cdba5 /src/checker.cpp
parent1aa9c49172caedb57568c3d2f563981e5b558b0d (diff)
Fix race condition with procedure aliases checking for declarations on constant aliases
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 89809779b..878435d67 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -3260,6 +3260,7 @@ void check_collect_value_decl(CheckerContext *c, Ast *decl) {
d->type_expr = vd->type;
d->init_expr = init;
+
if (is_ast_type(init)) {
e = alloc_entity_type_name(d->scope, token, nullptr);
// if (vd->type != nullptr) {