diff options
| author | gingerBill <bill@gingerbill.org> | 2018-03-23 15:23:14 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-03-23 15:23:14 +0000 |
| commit | 5bf0f9d630f16287f7977bbec1d85af9bcb432cf (patch) | |
| tree | a895fb66bc86417e3f70578cbe45218ac265464a /src/checker.cpp | |
| parent | fff4ead96ab7cab8091f990e6a947a08a23fd3a4 (diff) | |
Fix type cycle bug
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 1 |
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; } |