1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2022-05-17 16:12:39 +01:00
parent 1ff9c44267
commit bd3a9d2c94
8 changed files with 20 additions and 10 deletions

View File

@@ -412,7 +412,8 @@ need_type_where(
// 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;
}