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