aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2017-12-06 11:01:52 +0000
committerGitHub <noreply@github.com>2017-12-06 11:01:52 +0000
commitba8371104d86b93af3054ed20bc2fdf8768052d9 (patch)
tree83ce65b8cb367f73f7c5f56956711338219d668a /src/checker.cpp
parent991682e9fdae7410d1721d71164835c3795d9235 (diff)
Set procedure grouping type to `t_invalid`
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 7c9f20135..00f5df066 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, nullptr);
+ e = make_entity_procedure_grouping(c->allocator, d->scope, token, t_invalid);
if (fl != nullptr) {
error(name, "Procedure groupings are not allowed within a foreign block");
}