aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-07-07 08:11:31 +0100
committergingerBill <bill@gingerbill.org>2018-07-07 08:11:31 +0100
commit04a1f869b588dcaa738b009cf374493e8eb4a343 (patch)
tree020cc9694f533c5994ad625a6959952861ecc6fe /src
parentc0ca4d4635ebdc280278f483980365069380a06e (diff)
Fix `when` statements within a `foreign` block
Diffstat (limited to 'src')
-rw-r--r--src/checker.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 44bde3b73..58ba4aa68 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -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);
- c.collect_delayed_decls = true;
ast_node(block, BlockStmt, fb->body);
check_collect_entities(&c, block->stmts);
}