瀏覽代碼

Fix `when` statements within a `foreign` block

gingerBill 7 年之前
父節點
當前提交
04a1f869b5
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/checker.cpp

+ 0 - 1
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);
 }