comparison src/sign.c @ 25314:7e620652bd13 v8.2.3194

patch 8.2.3194: Vim9: argument types are not checked at compile time Commit: https://github.com/vim/vim/commit/cd9172077bc8c0aafddf2e5367cc0ae2c00c8ff7 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Jul 21 19:09:09 2021 +0200 patch 8.2.3194: Vim9: argument types are not checked at compile time Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, simplify some. (Yegappan Lakshmanan, closes #8598)
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Jul 2021 19:15:04 +0200
parents 4d3c68196d05
children e2be9f3c5907
comparison
equal deleted inserted replaced
25313:afe0651cb4aa 25314:7e620652bd13
2299 2299
2300 if (rettv_list_alloc_id(rettv, aid_sign_getplaced) != OK) 2300 if (rettv_list_alloc_id(rettv, aid_sign_getplaced) != OK)
2301 return; 2301 return;
2302 2302
2303 if (in_vim9script() 2303 if (in_vim9script()
2304 && (check_for_opt_string_or_number_arg(argvars, 0) == FAIL 2304 && (check_for_opt_buffer_arg(argvars, 0) == FAIL
2305 || (argvars[0].v_type != VAR_UNKNOWN 2305 || (argvars[0].v_type != VAR_UNKNOWN
2306 && check_for_opt_dict_arg(argvars, 1) == FAIL))) 2306 && check_for_opt_dict_arg(argvars, 1) == FAIL)))
2307 return; 2307 return;
2308 2308
2309 if (argvars[0].v_type != VAR_UNKNOWN) 2309 if (argvars[0].v_type != VAR_UNKNOWN)