v.parser: fix compilation of normal .v files with -translated (#13363)
parent
31739c2586
commit
939bc9f26f
|
@ -426,7 +426,7 @@ fn (mut p Parser) fn_decl() ast.FnDecl {
|
||||||
} else {
|
} else {
|
||||||
name = p.prepend_mod(name)
|
name = p.prepend_mod(name)
|
||||||
}
|
}
|
||||||
if !p.pref.translated && language == .v {
|
if language == .v {
|
||||||
if existing := p.table.fns[name] {
|
if existing := p.table.fns[name] {
|
||||||
if existing.name != '' {
|
if existing.name != '' {
|
||||||
if file_mode == .v && existing.file_mode != .v {
|
if file_mode == .v && existing.file_mode != .v {
|
||||||
|
|
Loading…
Reference in New Issue