aboutsummaryrefslogtreecommitdiff
path: root/src/checker/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/entity.cpp')
-rw-r--r--src/checker/entity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp
index b5f73c187..32563de4c 100644
--- a/src/checker/entity.cpp
+++ b/src/checker/entity.cpp
@@ -129,6 +129,7 @@ Entity *make_entity_field(gbAllocator a, Scope *scope, Token token, Type *type,
entity->Variable.field_index = field_index;
entity->Variable.is_field = true;
entity->Variable.anonymous = cast(b8)is_anonymous;
+ entity->Variable.is_using = cast(b8)is_anonymous;
return entity;
}