mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add inline to enums #1819.
This commit is contained in:
@@ -1463,6 +1463,7 @@ static inline bool sema_analyse_enum(SemaContext *context, Decl *decl, bool *era
|
||||
// Resolve the type of the enum.
|
||||
if (!sema_resolve_type_info(context, decl->enums.type_info, RESOLVE_TYPE_DEFAULT)) return false;
|
||||
|
||||
if (decl->enums.inline_index > -1 || decl->enums.inline_value) decl->is_substruct = true;
|
||||
Type *type = decl->enums.type_info->type;
|
||||
ASSERT(!type_is_optional(type) && "Already stopped when parsing.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user