From 01de1b6375c7efd604d53563960a29eb7078d004 Mon Sep 17 00:00:00 2001 From: Ned Palacios Date: Sun, 10 May 2020 15:30:35 +0800 Subject: [PATCH] parser: fix JSON encode function name on invocation --- vlib/v/gen/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/fn.v b/vlib/v/gen/fn.v index 81406e9f70..6a8c22e5ef 100644 --- a/vlib/v/gen/fn.v +++ b/vlib/v/gen/fn.v @@ -424,7 +424,7 @@ fn (mut g Gen) fn_call(node ast.CallExpr) { } if is_json_encode { // `json__encode` => `json__encode_User` - name += '_' + json_type_str + name += '_' + json_type_str.replace('.', '__') } // Generate tmp vars for values that have to be freed. /*