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

simplify vfmt

This commit is contained in:
Alexander Medvednikov
2019-11-11 08:58:50 +03:00
parent d9b29bfb4e
commit e6775913aa
5 changed files with 14 additions and 15 deletions

View File

@ -969,6 +969,7 @@ fn (p mut Parser) fn_call_args(f mut Fn) {
p.error('`$arg.name` is a mutable argument, you need to provide a variable to modify: `$f.name(... mut a...)`')
}
p.check(.key_mut)
p.fspace()
var_name := p.lit
v := p.find_var(var_name) or {
p.error('`$arg.name` is a mutable argument, you need to provide a variable to modify: `$f.name(... mut a...)`')