1
0
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:
Alexander Medvednikov 2023-06-27 02:17:09 +03:00
parent 21ccb9b48e
commit 02c382569c

View File

@ -898,7 +898,7 @@ pub fn (mut f Gen) fn_decl(node ast.FnDecl) {
} }
pub fn (mut f Gen) anon_fn(node ast.AnonFn) { 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) f.fn_body(node.decl)
} }