From 02c382569cc90f4453e345048af2f3b356945e76 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 27 Jun 2023 02:17:09 +0300 Subject: [PATCH] gen.golang: fix anon fn --- vlib/v/gen/golang/golang.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/golang/golang.v b/vlib/v/gen/golang/golang.v index c5c875ba10..6ddc1eb84a 100644 --- a/vlib/v/gen/golang/golang.v +++ b/vlib/v/gen/golang/golang.v @@ -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) }