0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3191: Vim9: not enough code is tested

Problem:    Vim9: not enough code is tested.
Solution:   Use CheckLegacyAndVim9Success() in more places.  Fix uncovered
            problems.
This commit is contained in:
Bram Moolenaar
2021-07-20 22:21:59 +02:00
parent e29a27f6f8
commit 63cb6567f0
4 changed files with 142 additions and 84 deletions

View File

@@ -6599,7 +6599,7 @@ compile_assign_unlet(
return FAIL;
}
type = ((type_T **)stack->ga_data)[stack->ga_len - 1];
if ((dest_type != VAR_BLOB || type != &t_special)
if ((dest_type != VAR_BLOB && type != &t_special)
&& need_type(type, &t_number,
-1, 0, cctx, FALSE, FALSE) == FAIL)
return FAIL;