0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.0719: Vim9: more expressions can be evaluated at compile time

Problem:    Vim9: more expressions can be evaluated at compile time
Solution:   Recognize has('name').
This commit is contained in:
Bram Moolenaar
2020-05-09 15:44:01 +02:00
parent 7d3664df90
commit a5565e4189
4 changed files with 445 additions and 274 deletions

View File

@@ -429,7 +429,7 @@ func Test_expr4_fails()
call CheckDefFailure(["let x = 1 == '2'"], 'Cannot compare number with string')
call CheckDefFailure(["let x = '1' == 2"], 'Cannot compare string with number')
call CheckDefFailure(["let x = 1 == RetVoid()"], 'Cannot use void value')
call CheckDefFailure(["let x = 1 == RetVoid()"], 'Cannot compare number with void')
call CheckDefFailure(["let x = RetVoid() == 1"], 'Cannot compare void with number')
call CheckDefFailure(["let x = true > false"], 'Cannot compare bool with bool')