aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-01-28 08:59:10 +0000
committergingerBill <bill@gingerbill.org>2018-01-28 08:59:10 +0000
commite2600a3e44b8dd4658dc5885490d24610849b857 (patch)
tree3230e9ef0689fca3c8f07931b8482706d6bf743c /src
parenta9c8031b613d7da7a03ab42a06078818afb5a5ad (diff)
Fix #178
Diffstat (limited to 'src')
-rw-r--r--src/check_decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 3501ba84d..549cdd9e1 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -254,6 +254,7 @@ void check_const_decl(Checker *c, Entity *e, AstNode *type_expr, AstNode *init,
switch (operand.mode) {
case Addressing_Type: {
e->kind = Entity_TypeName;
+ e->type = nullptr;
DeclInfo *d = c->context.decl;
if (d->type_expr != nullptr) {