From c6d86c8c9dd6f9962934c8c77c6c145bcdcdacec Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Fri, 20 May 2022 22:54:47 -0500 Subject: [PATCH] bugfix for memory reservations with unknown type --- src/checker.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.25.1