using x in bar;

This commit is contained in:
gingerBill
2017-12-17 11:44:26 +00:00
parent 0d665c637f
commit 32a502d14e
4 changed files with 175 additions and 10 deletions
+1
View File
@@ -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));