patch 8.2.2584: Vim9: type error for assigning "any" to a list
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)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index c781060..7c1dca5 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4450,7 +4450,7 @@
}
/*
- * + number addition
+ * + number addition or list/blobl concatenation
* - number subtraction
* .. string concatenation
*/
@@ -4532,6 +4532,7 @@
else
{
generate_ppconst(cctx, ppconst);
+ ppconst->pp_is_const = FALSE;
if (*op == '.')
{
if (may_generate_2STRING(-2, cctx) == FAIL