From 32a502d14ebea99ed1f526904635ff66afda8fd4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 17 Dec 2017 11:44:26 +0000 Subject: using x in bar; --- src/check_type.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/check_type.cpp') 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_map = {}; // Key: String map_init(&entity_map, c->tmp_allocator, 2*(et->fields.count)); -- cgit v1.2.3