aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-03-23 15:23:14 +0000
committergingerBill <bill@gingerbill.org>2018-03-23 15:23:14 +0000
commit5bf0f9d630f16287f7977bbec1d85af9bcb432cf (patch)
treea895fb66bc86417e3f70578cbe45218ac265464a /src/checker.cpp
parentfff4ead96ab7cab8091f990e6a947a08a23fd3a4 (diff)
Fix type cycle bug
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;
}