Browse Source

Set type of a procedure grouping to `nullptr`

gingerBill 7 years ago
parent
commit
41b8281c73
1 changed files with 1 additions and 1 deletions
  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;
 			} else if (init->kind == AstNode_ProcGrouping) {
 				ast_node(pg, ProcGrouping, init);
-				e = make_entity_procedure_grouping(c->allocator, d->scope, token, t_invalid);
+				e = make_entity_procedure_grouping(c->allocator, d->scope, token, nullptr);
 				if (fl != nullptr) {
 					error(name, "Procedure groupings are not allowed within a foreign block");
 				}