mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Set type of a procedure grouping to nullptr
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user