patch 8.2.4666: Vim9: assignment not recognized in skipped block
Problem: Vim9: assignment not recognized in skipped block.
Solution: When skipping assume identifier exists. (closes #10059)
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index 483b1f3..a853d9b 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -139,7 +139,7 @@
//
// Figure out the LHS type and other properties.
//
- ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, 0, cctx);
+ ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, FALSE, 0, cctx);
// Use the info in "lhs" to unlet the item at the index in the
// list or dict.
@@ -2160,7 +2160,7 @@
arg = skipwhite(arg);
if (compile_assign_lhs(arg, lhs, CMD_redir,
- FALSE, FALSE, 1, cctx) == FAIL)
+ FALSE, FALSE, FALSE, 1, cctx) == FAIL)
return NULL;
if (need_type(&t_string, lhs->lhs_member_type,
-1, 0, cctx, FALSE, FALSE) == FAIL)