mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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:
@@ -1602,7 +1602,7 @@ def Test_assign_list()
|
||||
l[g:idx : 1] = [0]
|
||||
echo l
|
||||
END
|
||||
v9.CheckDefExecAndScriptFailure(lines, 'E1030: Using a String as a Number: "x"')
|
||||
v9.CheckDefExecAndScriptFailure(lines, ['E1012: Type mismatch; expected number but got string', 'E1030: Using a String as a Number: "x"'])
|
||||
|
||||
lines =<< trim END
|
||||
var l = [1, 2]
|
||||
|
Reference in New Issue
Block a user