diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-04 16:06:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-04 16:06:05 +0200 |
commit | 1310660557470a669cc64b359e20666b116e5dbd (patch) | |
tree | 9769c7afcb813f6a1cee333375be0ebddad9f91d /src/testdir/test_vim9_script.vim | |
parent | 6abd3dc257cf56a8262db38eb15c7cc754e8e002 (diff) |
patch 8.2.1798: Vim9: trinary operator condition is too permissivev8.2.1798
Problem: Vim9: trinary operator condition is too permissive.
Solution: Use tv_get_bool_chk().
Diffstat (limited to 'src/testdir/test_vim9_script.vim')
-rw-r--r-- | src/testdir/test_vim9_script.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 6dbabe3892..7fc522362d 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -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:') |