projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67ba6ea
)
bugfix for memory reservations with unknown type
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sat, 21 May 2022 03:54:47 +0000
(22:54 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sat, 21 May 2022 03:54:47 +0000
(22:54 -0500)
src/checker.c
patch
|
blob
|
history
diff --git
a/src/checker.c
b/src/checker.c
index 6527a3ccbd6844dd307ece5113376af37bc6957c..6b198e7f30c67ea422970c71bf4d16664bb5697e 100644
(file)
--- 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;