mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Set type of a procedure grouping to nullptr
This commit is contained in:
+1
-1
@@ -2261,7 +2261,7 @@ void check_collect_value_decl(Checker *c, AstNode *decl) {
|
|||||||
d->type_expr = pl->type;
|
d->type_expr = pl->type;
|
||||||
} else if (init->kind == AstNode_ProcGrouping) {
|
} else if (init->kind == AstNode_ProcGrouping) {
|
||||||
ast_node(pg, ProcGrouping, init);
|
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) {
|
if (fl != nullptr) {
|
||||||
error(name, "Procedure groupings are not allowed within a foreign block");
|
error(name, "Procedure groupings are not allowed within a foreign block");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user