1
0
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:
Alexander Medvednikov 2020-01-01 13:12:38 +01:00
parent 327314c2c3
commit e53bb6a9d4

View File

@ -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{