mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gen.golang: fix anon fn
This commit is contained in:
parent
21ccb9b48e
commit
02c382569c
@ -898,7 +898,7 @@ pub fn (mut f Gen) fn_decl(node ast.FnDecl) {
|
||||
}
|
||||
|
||||
pub fn (mut f Gen) anon_fn(node ast.AnonFn) {
|
||||
f.write(node.stringify_fn_decl(f.table, f.cur_mod, f.mod2alias)) // `Expr` instead of `ast.Expr` in mod ast
|
||||
f.write(node.stringify_anon_decl(f.table, f.cur_mod, f.mod2alias)) // `Expr` instead of `ast.Expr` in mod ast
|
||||
f.fn_body(node.decl)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user