parser: wrong `else`

pull/3295/head
Alexander Medvednikov 2020-01-01 13:12:38 +01:00
parent 327314c2c3
commit e53bb6a9d4
1 changed files with 2 additions and 3 deletions

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{