From 939bc9f26f353ccb3628308c300fde7670db3c4c Mon Sep 17 00:00:00 2001 From: div72 <60045611+div72@users.noreply.github.com> Date: Sun, 6 Feb 2022 13:53:20 +0300 Subject: [PATCH] v.parser: fix compilation of normal .v files with -translated (#13363) --- vlib/v/parser/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/fn.v b/vlib/v/parser/fn.v index 0fe9e9f838..190c02fce6 100644 --- a/vlib/v/parser/fn.v +++ b/vlib/v/parser/fn.v @@ -426,7 +426,7 @@ fn (mut p Parser) fn_decl() ast.FnDecl { } else { name = p.prepend_mod(name) } - if !p.pref.translated && language == .v { + if language == .v { if existing := p.table.fns[name] { if existing.name != '' { if file_mode == .v && existing.file_mode != .v {