| ... | ... | @@ -1879,7 +1879,7 @@ static void resolve_decl_fn(CodeGen *g, TldFn *tld_fn) { |
| 1879 | 1879 | if (fn_def_node) |
| 1880 | 1880 | g->fn_defs.append(fn_table_entry); |
| 1881 | 1881 | |
| 1882 | | if (import == g->root_import && scope_is_root_decls(tld_fn->base.parent_scope)) { |
| 1882 | if (g->have_pub_main && import == g->root_import && scope_is_root_decls(tld_fn->base.parent_scope)) { |
| 1883 | 1883 | if (buf_eql_str(&fn_table_entry->symbol_name, "main")) { |
| 1884 | 1884 | g->main_fn = fn_table_entry; |
| 1885 | 1885 | |