mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-22 07:58:24 +00:00
make main always pub
This commit is contained in:
parent
ff0b6fb995
commit
2d69bf095a
|
@ -93,7 +93,7 @@ fn lower_function(ctx: BuildCtx, func: &ast::Function, module_id: DefId) -> Buil
|
|||
let body = ctx.body.modules.get(&module_id).unwrap();
|
||||
*body.symbols.functions.get(&func.name.name).unwrap()
|
||||
},
|
||||
is_pub: func.is_public,
|
||||
is_pub: func.is_public || func.name.name == "main",
|
||||
is_extern: func.is_extern,
|
||||
fn_span: func.span,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue