Allow for base enum type with an enum declaration

This commit is contained in:
gingerBill
2018-06-11 22:50:13 +01:00
parent 555fe37ad8
commit 8236c6d4b7
6 changed files with 51 additions and 47 deletions
+1
View File
@@ -1931,6 +1931,7 @@ bool check_type_internal(CheckerContext *ctx, AstNode *e, Type **type, Type *nam
bool ips = ctx->in_polymorphic_specialization;
defer (ctx->in_polymorphic_specialization = ips);
ctx->in_polymorphic_specialization = false;
ctx->in_enum_type = true;
*type = alloc_type_enum();
set_base_type(named_type, *type);