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

parser: unknown function error

This commit is contained in:
Alexander Medvednikov 2020-01-01 13:07:57 +01:00
parent f87177d34d
commit 327314c2c3

View File

@ -282,8 +282,9 @@ pub fn (p mut Parser) call_expr() (ast.CallExpr,types.Type) {
if p.tok.kind == .comma { if p.tok.kind == .comma {
p.error('too many arguments in call to `$fn_name`') p.error('too many arguments in call to `$fn_name`')
} }
// }else{ else {
// p.error('unknown function `$fn_name`') p.error('unknown function `$fn_name`')
}
} }
p.check(.rpar) p.check(.rpar)
node := ast.CallExpr{ node := ast.CallExpr{