mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: wrong else
This commit is contained in:
parent
327314c2c3
commit
e53bb6a9d4
@ -282,9 +282,8 @@ pub fn (p mut Parser) call_expr() (ast.CallExpr,types.Type) {
|
||||
if p.tok.kind == .comma {
|
||||
p.error('too many arguments in call to `$fn_name`')
|
||||
}
|
||||
else {
|
||||
p.error('unknown function `$fn_name`')
|
||||
}
|
||||
}else{
|
||||
p.error('unknown function `$fn_name`')
|
||||
}
|
||||
p.check(.rpar)
|
||||
node := ast.CallExpr{
|
||||
|
Loading…
Reference in New Issue
Block a user