Problem: Vim9: crash when compiling string fails. (Yegappan Lakshmanan)
Solution: Adjust the type stack length.
END
CheckScriptSuccess(lines)
assert_equal('yes', g:caught)
-
unlet g:caught
+
+ lines =<< trim END
+ echo searchpair("a", "b", "c", "d", "1", "f")
+ END
+ CheckDefAndScriptFailure2(lines, 'E1001:', 'E475:')
+
bwipe!
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3207,
/**/
3206,
/**/
semsg(_(e_trailing_arg), s);
clear_instr_ga(&cctx->ctx_instr);
cctx->ctx_instr = save_ga;
+ ++cctx->ctx_type_stack.ga_len;
return FAIL;
}