From fb302c6253a5763bc13967f952852345d792cce5 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 2 Apr 2021 03:29:24 +0300 Subject: [PATCH] checker: fix compilation --- vlib/v/checker/checker.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 31f06d7067..7fea9462aa 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -1410,9 +1410,9 @@ fn (mut c Checker) check_map_and_filter(is_map bool, elem_typ ast.Type, call_exp } } ast.CallExpr { - if is_map && arg_expr.return_type == table.void_type { + if is_map && arg_expr.return_type == ast.void_type { c.error('type mismatch, `$arg_expr.name` does not return anything', arg_expr.pos) - } else if !is_map && arg_expr.return_type != table.bool_type { + } else if !is_map && arg_expr.return_type != ast.bool_type { c.error('type mismatch, `$arg_expr.name` must return a bool', arg_expr.pos) } }