comparison src/vim9instr.c @ 27569:f40647a2b36a v8.2.4311

patch 8.2.4311: Vim9: changing script variable type not caught compile time Commit: https://github.com/vim/vim/commit/160afdb1850b8cf56dc8e94acee7a04bc2113992 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 6 17:17:02 2022 +0000 patch 8.2.4311: Vim9: changing script variable type not caught compile time Problem: Vim9: changing script variable type not caught at compile time. Solution: Set the declared type.
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Feb 2022 18:30:04 +0100
parents 5bf2fca4f967
children e6e3abc28c7a
comparison
equal deleted inserted replaced
27568:efccea5925bc 27569:f40647a2b36a
1038 scriptref_T *sref; 1038 scriptref_T *sref;
1039 scriptitem_T *si = SCRIPT_ITEM(sid); 1039 scriptitem_T *si = SCRIPT_ITEM(sid);
1040 1040
1041 RETURN_OK_IF_SKIP(cctx); 1041 RETURN_OK_IF_SKIP(cctx);
1042 if (isn_type == ISN_LOADSCRIPT) 1042 if (isn_type == ISN_LOADSCRIPT)
1043 isn = generate_instr_type(cctx, isn_type, type); 1043 isn = generate_instr_type2(cctx, isn_type, type, type);
1044 else 1044 else
1045 isn = generate_instr_drop(cctx, isn_type, 1); 1045 isn = generate_instr_drop(cctx, isn_type, 1);
1046 if (isn == NULL) 1046 if (isn == NULL)
1047 return FAIL; 1047 return FAIL;
1048 1048