diff options
| author | gingerBill <bill@gingerbill.org> | 2017-12-17 11:44:26 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-12-17 11:44:26 +0000 |
| commit | 32a502d14ebea99ed1f526904635ff66afda8fd4 (patch) | |
| tree | 3bc13428d8e0e4c07b313ffb39b35abf3dd3b149 /src/check_type.cpp | |
| parent | 0d665c637f164bb077b9d63bb947690affede6dd (diff) | |
using x in bar;
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)); |