mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +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) {
|
switch (operand.mode) {
|
||||||
case Addressing_Type: {
|
case Addressing_Type: {
|
||||||
e->kind = Entity_TypeName;
|
e->kind = Entity_TypeName;
|
||||||
|
e->type = nullptr;
|
||||||
|
|
||||||
DeclInfo *d = c->context.decl;
|
DeclInfo *d = c->context.decl;
|
||||||
if (d->type_expr != nullptr) {
|
if (d->type_expr != nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user