Syntactic sugar for anonymous enum within a bit set

This commit is contained in:
gingerBill
2018-09-11 12:10:32 +01:00
parent b468cf141b
commit f1e1814ff9
4 changed files with 47 additions and 16 deletions

View File

@@ -242,7 +242,6 @@ void check_type_decl(CheckerContext *ctx, Entity *e, Ast *type_expr, Type *def)
e->type = t_invalid;
String name = e->token.string;
Type *named = alloc_type_named(name, nullptr, e);
named->Named.type_name = e;
if (def != nullptr && def->kind == Type_Named) {
def->Named.base = named;
}