diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-15 15:40:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-15 15:40:58 +0200 |
commit | 9e60e899ee546a8a35c4cbe0319971719c1839e9 (patch) | |
tree | 4126ed67ce70ed34c5f857acea53ab21ce4374e7 /src/testdir | |
parent | 0894e0d8087aad4d467fd7b3d87b1930fe661916 (diff) |
patch 8.2.3165: Vim9: in a || expression the error line number may be wrongv8.2.3165
Problem: Vim9: in a || expression the error line number may be wrong.
Solution: Save and restore the line number when checking the type.
(closes #8569)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_expr.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim index 59ac957131..ae48a89604 100644 --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -401,6 +401,13 @@ def Test_expr2_fails() # comment END CheckScriptFailure(lines, 'E1004: White space required before and after ''||'' at "||true"', 3) + + lines =<< trim END + var x = false + || false + || a.b + END + CheckDefFailure(lines, 'E1001:', 3) enddef " test && |