mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.1798: Vim9: trinary operator condition is too permissive
Problem: Vim9: trinary operator condition is too permissive. Solution: Use tv_get_bool_chk().
This commit is contained in:
@@ -543,7 +543,7 @@ def Test_try_catch_fails()
|
||||
CheckDefFailure(['endtry'], 'E602:')
|
||||
CheckDefFailure(['while 1', 'endtry'], 'E170:')
|
||||
CheckDefFailure(['for i in range(5)', 'endtry'], 'E170:')
|
||||
CheckDefFailure(['if 2', 'endtry'], 'E171:')
|
||||
CheckDefFailure(['if 1', 'endtry'], 'E171:')
|
||||
CheckDefFailure(['try', 'echo 1', 'endtry'], 'E1032:')
|
||||
|
||||
CheckDefFailure(['throw'], 'E1015:')
|
||||
|
Reference in New Issue
Block a user