1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2021-08-15 20:36:28 +02:00
parent 4bba16d252
commit cd6b4f3001
5 changed files with 49 additions and 31 deletions

View File

@@ -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)