diff options
| author | gingerBill <bill@gingerbill.org> | 2018-01-28 08:59:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-01-28 08:59:10 +0000 |
| commit | e2600a3e44b8dd4658dc5885490d24610849b857 (patch) | |
| tree | 3230e9ef0689fca3c8f07931b8482706d6bf743c /src/check_decl.cpp | |
| parent | a9c8031b613d7da7a03ab42a06078818afb5a5ad (diff) | |
Fix #178
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 1 |
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) { |