0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.3165: Vim9: in a || expression the error line number may be wrong

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)
This commit is contained in:
Bram Moolenaar
2021-07-15 15:40:58 +02:00
parent 0894e0d808
commit 9e60e899ee
3 changed files with 12 additions and 0 deletions

View File

@@ -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 &&