diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index f9f59f1682..060e2cf0e0 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -1360,11 +1360,9 @@ pub fn (mut c Checker) call_method(mut call_expr ast.CallExpr) table.Type { // check fn c.check_map_and_filter(true, elem_typ, call_expr) arg_sym := c.table.get_type_symbol(arg_type) - // FIXME: match expr failed for now - mut ret_type := 0 - match mut arg_sym.info { - table.FnType { ret_type = arg_sym.info.func.return_type } - else { ret_type = arg_type } + ret_type := match arg_sym.info { + table.FnType { arg_sym.info.func.return_type } + else { arg_type } } call_expr.return_type = c.table.find_or_register_array(ret_type) } else if method_name == 'filter' {