summaryrefslogtreecommitdiff
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index 5aa783e82..ed6311baa 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -1045,7 +1045,7 @@ compile_for(char_u *arg_start, cctx_T *cctx)
if (lhs_type == &t_any)
lhs_type = item_type;
else if (item_type != &t_unknown
- && need_type_where(item_type, lhs_type, -1,
+ && need_type_where(item_type, lhs_type, FALSE, -1,
where, cctx, FALSE, FALSE) == FAIL)
goto failed;
var_lvar = reserve_local(cctx, arg, varlen, ASSIGN_FINAL,
@@ -2469,7 +2469,7 @@ compile_redir(char_u *line, exarg_T *eap, cctx_T *cctx)
if (compile_assign_lhs(arg, lhs, CMD_redir,
FALSE, FALSE, FALSE, 1, cctx) == FAIL)
return NULL;
- if (need_type(&t_string, lhs->lhs_member_type,
+ if (need_type(&t_string, lhs->lhs_member_type, FALSE,
-1, 0, cctx, FALSE, FALSE) == FAIL)
return NULL;
if (cctx->ctx_skip == SKIP_YES)
@@ -2551,7 +2551,7 @@ compile_return(char_u *arg, int check_return_type, int legacy, cctx_T *cctx)
int save_flags = cmdmod.cmod_flags;
generate_LEGACY_EVAL(cctx, p);
- if (need_type(&t_any, cctx->ctx_ufunc->uf_ret_type, -1,
+ if (need_type(&t_any, cctx->ctx_ufunc->uf_ret_type, FALSE, -1,
0, cctx, FALSE, FALSE) == FAIL)
return NULL;
cmdmod.cmod_flags |= CMOD_LEGACY;
@@ -2580,8 +2580,8 @@ compile_return(char_u *arg, int check_return_type, int legacy, cctx_T *cctx)
}
else
{
- if (need_type(stack_type, cctx->ctx_ufunc->uf_ret_type, -1,
- 0, cctx, FALSE, FALSE) == FAIL)
+ if (need_type(stack_type, cctx->ctx_ufunc->uf_ret_type, FALSE,
+ -1, 0, cctx, FALSE, FALSE) == FAIL)
return NULL;
}
}