From b2207c3d28b797d46d087c2afba3b44f262ad5ff Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov <alexander@medvednikov.com> Date: Mon, 9 Dec 2019 00:24:50 +0300 Subject: [PATCH] do not prepend module to external fn name --- vlib/compiler/fn.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/compiler/fn.v b/vlib/compiler/fn.v index 666a13ec66..6c645deb95 100644 --- a/vlib/compiler/fn.v +++ b/vlib/compiler/fn.v @@ -374,6 +374,7 @@ fn (p mut Parser) fn_decl() { // V allows empty functions (just definitions) is_fn_header := !is_c && !p.is_vh && p.tok != .lcbr if is_fn_header { + f.name = orig_name // don't prepend module to external fn defs f.is_decl = true } // Make sure the name is valid