1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: minor fixes

This commit is contained in:
Alexander Medvednikov
2020-03-20 17:20:53 +01:00
parent 6b571155f4
commit 5a7f683f61
3 changed files with 5 additions and 4 deletions

View File

@ -346,7 +346,7 @@ fn (p mut Parser) fn_decl() {
if p.tok == .lt {
// instance (dispatch)
if p.generic_dispatch.inst.size > 0 {
rename_generic_fn_instance(mut f, &p.generic_dispatch)
rename_generic_fn_instance(mut f, p.generic_dispatch)
}
else {
f.is_generic = true