mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
do not prepend module to external fn name
This commit is contained in:
parent
4ebf53c6e9
commit
b2207c3d28
@ -374,6 +374,7 @@ fn (p mut Parser) fn_decl() {
|
|||||||
// V allows empty functions (just definitions)
|
// V allows empty functions (just definitions)
|
||||||
is_fn_header := !is_c && !p.is_vh && p.tok != .lcbr
|
is_fn_header := !is_c && !p.is_vh && p.tok != .lcbr
|
||||||
if is_fn_header {
|
if is_fn_header {
|
||||||
|
f.name = orig_name // don't prepend module to external fn defs
|
||||||
f.is_decl = true
|
f.is_decl = true
|
||||||
}
|
}
|
||||||
// Make sure the name is valid
|
// Make sure the name is valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user