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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user