INIT(= N_("E704: Funcref variable name must start with a capital: %s"));
EXTERN char e_variable_name_conflicts_with_existing_function_str[]
INIT(= N_("E705: Variable name conflicts with existing function: %s"));
-// E706 unused
+EXTERN char e_argument_of_str_must_be_list_string_or_dictionary[]
+ INIT(= N_("E706: Argument of %s must be a List, String or Dictionary"));
EXTERN char e_function_name_conflicts_with_variable_str[]
INIT(= N_("E707: Function name conflicts with variable: %s"));
EXTERN char e_slice_must_come_last[]
else
n = dict_count(argvars[0].vval.v_dict, &argvars[1], ic);
}
- else
- semsg(_(e_argument_of_str_must_be_list_or_dictionary), "count()");
+ else if (!error)
+ semsg(_(e_argument_of_str_must_be_list_string_or_dictionary),
+ "count()");
rettv->vval.v_number = n;
}
call assert_equal(2, count("fooooo", "oo"))
call assert_equal(0, count("foo", ""))
- call assert_fails('call count(0, 0)', 'E712:')
+ call assert_fails('call count(0, 0)', 'E706:')
+ call assert_fails('call count("", "", {})', ['E728:', 'E728:'])
endfunc
func Test_changenr()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1722,
/**/
1721,
/**/