mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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.
This commit is contained in:
@@ -1040,7 +1040,7 @@ generate_VIM9SCRIPT(
|
||||
|
||||
RETURN_OK_IF_SKIP(cctx);
|
||||
if (isn_type == ISN_LOADSCRIPT)
|
||||
isn = generate_instr_type(cctx, isn_type, type);
|
||||
isn = generate_instr_type2(cctx, isn_type, type, type);
|
||||
else
|
||||
isn = generate_instr_drop(cctx, isn_type, 1);
|
||||
if (isn == NULL)
|
||||
|
Reference in New Issue
Block a user