mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-21 13:14:59 -07:00
Allow for base enum type with an enum declaration
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user