v2: fix FnDecl ref bug
parent
2af3c0ede4
commit
60a4f668b7
|
@ -59,7 +59,7 @@ fn (g mut Gen) stmt(node ast.Stmt) {
|
|||
}
|
||||
}
|
||||
ast.FnDecl {
|
||||
g.fn_decl = &it
|
||||
g.fn_decl = it // &it
|
||||
is_main := it.name == 'main'
|
||||
if is_main {
|
||||
g.write('int ${it.name}(')
|
||||
|
|
Loading…
Reference in New Issue