Set type of a procedure grouping to nullptr

This commit is contained in:
gingerBill
2017-12-06 11:13:00 +00:00
committed by GitHub
parent acd1f83bd0
commit 41b8281c73

View File

@@ -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");
}