0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3106: Vim9: confusing line number reported for error

Problem:    Vim9: confusing line number reported for error.
Solution:   Use the start line number for the store instruction.
            (closes #8488)
This commit is contained in:
Bram Moolenaar
2021-07-04 22:48:12 +02:00
parent 97f227d9c9
commit 6977dba04b
3 changed files with 25 additions and 1 deletions

View File

@@ -388,6 +388,16 @@ def Test_assign_linebreak()
->copy()
END
CheckDefFailure(lines, 'E1012:', 2)
lines =<< trim END
var x: any
x.key = 1
+ 2
+ 3
+ 4
+ 5
END
CheckDefExecAndScriptFailure2(lines, 'E1148:', 'E1203:', 2)
enddef
def Test_assign_index()