diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2017-12-06 11:13:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-06 11:13:00 +0000 |
| commit | 41b8281c7355eea7c4a2022027769df8a519ae7a (patch) | |
| tree | c9fa0726f85a73cf35b52a030b1d5ce2af3e42f7 /src | |
| parent | acd1f83bd0c2e5e37ba92c4264a248ef2ebe77de (diff) | |
Set type of a procedure grouping to `nullptr`
Diffstat (limited to 'src')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 00f5df066..7c9f20135 100644 --- a/src/checker.cpp +++ b/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"); } |