Problem: Vim9: no clear error for wrong inline function.
Solution: Check for something following the "{".
assert_equal(['no', 'yes', 'no'], dll)
END
CheckDefAndScriptSuccess(lines)
+
+ lines =<< trim END
+ map([1, 2], (k, v) => { redrawt })
+ END
+ CheckDefAndScriptFailure(lines, 'E488')
enddef
def NewLambdaWithComments(): func
int lnum_save = -1;
linenr_T sourcing_lnum_top = SOURCING_LNUM;
+ if (!ends_excmd2(*arg, skipwhite(*arg + 1)))
+ {
+ semsg(_(e_trailing_arg), *arg + 1);
+ return FAIL;
+ }
+
CLEAR_FIELD(eap);
eap.cmdidx = CMD_block;
eap.forceit = FALSE;
- eap.arg = *arg + 1;
eap.cmdlinep = &cmdline;
eap.skip = !evaluate;
if (evalarg->eval_cctx != NULL)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2642,
/**/
2641,
/**/