diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-11 22:50:13 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-11 22:50:13 +0100 |
| commit | 8236c6d4b7f75f2e20332b0b4181b259336f9a4a (patch) | |
| tree | 7143ccf9b23f9580ba10a63e6af699dc14a22db9 /src/check_type.cpp | |
| parent | 555fe37ad8142f7daccf61ba7869a43376cd0441 (diff) | |
Allow for base enum type with an enum declaration
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index e4bd3dd2b..7b0ff8488 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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); |