aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
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 9d99b3a77..2083c7446 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -503,6 +503,7 @@ Entity *add_global_entity(Entity *entity) {
if (scope_insert_entity(universal_scope, entity)) {
compiler_error("double declaration");
}
+ entity->state = EntityState_Resolved;
return entity;
}