Mercurial > vim
diff src/testdir/test_vim9_script.vim @ 25634:27cb2e79ccde v8.2.3353
patch 8.2.3353: Vim9: type of argument for negate not checked at compile time
Commit: https://github.com/vim/vim/commit/cd6b4f300189b4920f7ee7f0204338e91210674b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 15 20:36:28 2021 +0200
patch 8.2.3353: Vim9: type of argument for negate not checked at compile time
Problem: Vim9: type of argument for negate not checked at compile time.
Solution: Add a compile time check.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Aug 2021 20:45:04 +0200 |
parents | 5ab75ca75d21 |
children | 6ed39aa92cb9 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -469,21 +469,21 @@ def Test_try_catch_throw() try n = -g:astring - catch /E39:/ + catch /E1012:/ n = 233 endtry assert_equal(233, n) try n = +g:astring - catch /E1030:/ + catch /E1012:/ n = 244 endtry assert_equal(244, n) try n = +g:alist - catch /E745:/ + catch /E1012:/ n = 255 endtry assert_equal(255, n)