From: Brendan Hansen Date: Sat, 21 May 2022 03:54:47 +0000 (-0500) Subject: bugfix for memory reservations with unknown type X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=c6d86c8c9dd6f9962934c8c77c6c145bcdcdacec;p=onyx.git bugfix for memory reservations with unknown type --- diff --git a/src/checker.c b/src/checker.c index 6527a3cc..6b198e7f 100644 --- a/src/checker.c +++ b/src/checker.c @@ -1893,11 +1893,14 @@ CheckStatus check_expression(AstTyped** pexpr) { retval = check_do_block((AstDoBlock **) pexpr); break; + case Ast_Kind_Memres: + if (expr->type == NULL) YIELD(expr->token->pos, "Waiting to know globals type."); + break; + case Ast_Kind_StrLit: break; case Ast_Kind_File_Contents: break; case Ast_Kind_Overloaded_Function: break; case Ast_Kind_Enum_Value: break; - case Ast_Kind_Memres: break; case Ast_Kind_Polymorphic_Proc: break; case Ast_Kind_Package: break; case Ast_Kind_Error: break;