patch 8.2.4973: Vim9: type error for list unpack mentions argument
Problem: Vim9: type error for list unpack mentions argument.
Solution: Mention variable. (close #10435)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 3eae14a..48a913a 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -412,7 +412,8 @@
// If the actual type can be the expected type add a runtime check.
if (!actual_is_const && ret == MAYBE && use_typecheck(actual, expected))
{
- generate_TYPECHECK(cctx, expected, offset, where.wt_index);
+ generate_TYPECHECK(cctx, expected, offset,
+ where.wt_variable, where.wt_index);
return OK;
}