Problem: Vim9: type error for assigning the result of list concatenation to
a list.
Solution: Do not consider concatenation result in a constant. (closes #7942)
dany[i] = i
endfor
assert_equal({a: 'a', 12: 12}, dany)
+
+ # result of glob() is "any", runtime type check
+ var sl: list<string> = glob('*.txt', false, true) + ['']
enddef
" test multiply, divide, modulo
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2584,
/**/
2583,
/**/
}
/*
- * + number addition
+ * + number addition or list/blobl concatenation
* - number subtraction
* .. string concatenation
*/
else
{
generate_ppconst(cctx, ppconst);
+ ppconst->pp_is_const = FALSE;
if (*op == '.')
{
if (may_generate_2STRING(-2, cctx) == FAIL