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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user