diff options
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 8600f1a55..0bee3171f 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -697,6 +697,7 @@ void check_enum_type(Checker *c, Type *enum_type, Type *named_type, AstNode *nod // NOTE(bill): Must be up here for the 'check_init_constant' system enum_type->Enum.base_type = base_type; + enum_type->Enum.scope = c->context.scope; Map<Entity *> entity_map = {}; // Key: String map_init(&entity_map, c->tmp_allocator, 2*(et->fields.count)); |