mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 01:44:36 +00:00
Fix #178
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user