forked from aniani/vim
patch 8.2.4590: Vim9: range type check has wrong offset
Problem: Vim9: range type check has wrong offset. Solution: Adjust offset for CHECKTYPE. Remove other type check.
This commit is contained in:
@@ -1802,7 +1802,7 @@ compile_assign_unlet(
|
||||
{
|
||||
type = get_type_on_stack(cctx, 1);
|
||||
if (need_type(type, &t_number,
|
||||
-1, 0, cctx, FALSE, FALSE) == FAIL)
|
||||
-2, 0, cctx, FALSE, FALSE) == FAIL)
|
||||
return FAIL;
|
||||
}
|
||||
type = get_type_on_stack(cctx, 0);
|
||||
|
Reference in New Issue
Block a user