Consider the following code:
set nocompatible
function! Err()
try
return [
catch
return 2
endtry
endfunction
echo Err()
vim launched with «vim -u NONE -S /path/to/file.vim» gives E697 and E15 errors,
while it should give none. If you change «return» to «echo», it will just echo
2
without any errors. E691 («return ["abc"] =~? '.'») is also not caught, but
«return call("Abc", [])» was caught successfully. This error was found by «sgp»
on vim-use when he tried to catch E691 error instead of checking variable type.
Tested on vim-7.3.102 from Gentoo repos and on vim-7.3.107 from mercurial
repository.
signature.asc
Description: This is a digitally signed message part.
