Przeglądaj źródła

Set procedure grouping type to `t_invalid`

gingerBill 7 lat temu
rodzic
commit
ba8371104d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/checker.cpp

+ 1 - 1
src/checker.cpp

@@ -2261,7 +2261,7 @@ void check_collect_value_decl(Checker *c, AstNode *decl) {
 				d->type_expr = pl->type;
 				d->type_expr = pl->type;
 			} else if (init->kind == AstNode_ProcGrouping) {
 			} else if (init->kind == AstNode_ProcGrouping) {
 				ast_node(pg, ProcGrouping, init);
 				ast_node(pg, ProcGrouping, init);
-				e = make_entity_procedure_grouping(c->allocator, d->scope, token, nullptr);
+				e = make_entity_procedure_grouping(c->allocator, d->scope, token, t_invalid);
 				if (fl != nullptr) {
 				if (fl != nullptr) {
 					error(name, "Procedure groupings are not allowed within a foreign block");
 					error(name, "Procedure groupings are not allowed within a foreign block");
 				}
 				}