This commit is contained in:
gingerBill
2018-01-28 08:59:10 +00:00
parent a9c8031b61
commit e2600a3e44

View File

@@ -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) {