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.
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 97031ef..7014875 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -6599,7 +6599,7 @@
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;