comparison src/evalfunc.c @ 23705:9092d2a4422a v8.2.2394

patch 8.2.2394: Vim9: min() and max() return type is "any" Commit: https://github.com/vim/vim/commit/9ae3705b6ebd45086ca13c0f93a93f943559bd15 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 22 22:31:10 2021 +0100 patch 8.2.2394: Vim9: min() and max() return type is "any" Problem: Vim9: min() and max() return type is "any". Solution: Use return type "number". (closes https://github.com/vim/vim/issues/7728)
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Jan 2021 22:45:03 +0100
parents 1974c5122506
children 93f90f2ff4e9
comparison
equal deleted inserted replaced
23704:85c8bd7cca28 23705:9092d2a4422a
1217 {"matchstr", 2, 4, FEARG_1, NULL, 1217 {"matchstr", 2, 4, FEARG_1, NULL,
1218 ret_string, f_matchstr}, 1218 ret_string, f_matchstr},
1219 {"matchstrpos", 2, 4, FEARG_1, NULL, 1219 {"matchstrpos", 2, 4, FEARG_1, NULL,
1220 ret_list_any, f_matchstrpos}, 1220 ret_list_any, f_matchstrpos},
1221 {"max", 1, 1, FEARG_1, NULL, 1221 {"max", 1, 1, FEARG_1, NULL,
1222 ret_any, f_max}, 1222 ret_number, f_max},
1223 {"menu_info", 1, 2, FEARG_1, NULL, 1223 {"menu_info", 1, 2, FEARG_1, NULL,
1224 ret_dict_any, 1224 ret_dict_any,
1225 #ifdef FEAT_MENU 1225 #ifdef FEAT_MENU
1226 f_menu_info 1226 f_menu_info
1227 #else 1227 #else
1228 NULL 1228 NULL
1229 #endif 1229 #endif
1230 }, 1230 },
1231 {"min", 1, 1, FEARG_1, NULL, 1231 {"min", 1, 1, FEARG_1, NULL,
1232 ret_any, f_min}, 1232 ret_number, f_min},
1233 {"mkdir", 1, 3, FEARG_1, NULL, 1233 {"mkdir", 1, 3, FEARG_1, NULL,
1234 ret_number_bool, f_mkdir}, 1234 ret_number_bool, f_mkdir},
1235 {"mode", 0, 1, FEARG_1, NULL, 1235 {"mode", 0, 1, FEARG_1, NULL,
1236 ret_string, f_mode}, 1236 ret_string, f_mode},
1237 {"mzeval", 1, 1, FEARG_1, NULL, 1237 {"mzeval", 1, 1, FEARG_1, NULL,