aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-11 22:50:13 +0100
committergingerBill <bill@gingerbill.org>2018-06-11 22:50:13 +0100
commit8236c6d4b7f75f2e20332b0b4181b259336f9a4a (patch)
tree7143ccf9b23f9580ba10a63e6af699dc14a22db9 /src/check_type.cpp
parent555fe37ad8142f7daccf61ba7869a43376cd0441 (diff)
Allow for base enum type with an enum declaration
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
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);