Fix type cycle bug

This commit is contained in:
gingerBill
2018-03-23 15:23:14 +00:00
parent fff4ead96a
commit 5bf0f9d630
8 changed files with 83 additions and 41 deletions

View File

@@ -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;
}