mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix when statements within a foreign block
This commit is contained in:
@@ -2159,7 +2159,6 @@ void check_add_foreign_block_decl(CheckerContext *ctx, Ast *decl) {
|
|||||||
|
|
||||||
check_decl_attributes(&c, fb->attributes, foreign_block_decl_attribute, nullptr);
|
check_decl_attributes(&c, fb->attributes, foreign_block_decl_attribute, nullptr);
|
||||||
|
|
||||||
c.collect_delayed_decls = true;
|
|
||||||
ast_node(block, BlockStmt, fb->body);
|
ast_node(block, BlockStmt, fb->body);
|
||||||
check_collect_entities(&c, block->stmts);
|
check_collect_entities(&c, block->stmts);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user