From 327314c2c37248fe5726cec391ab2e431d83287c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 1 Jan 2020 13:07:57 +0100 Subject: [PATCH] parser: unknown function error --- vlib/v/parser/parser.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 492b811969..1612a5de53 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -282,8 +282,9 @@ 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{