0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1350: Vim9: no test for error message when redefining function

Problem:    Vim9: no test for error message when redefining function.
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar
2020-08-01 22:23:20 +02:00
parent eef2102e20
commit b9a2cac3ef
2 changed files with 15 additions and 0 deletions

View File

@@ -1651,6 +1651,19 @@ def Test_func_overrules_import_fails()
delete('XexportedFunc.vim')
enddef
def Test_func_redefine_fails()
let lines =<< trim END
vim9script
def Func()
echo 'one'
enddef
def Func()
echo 'two'
enddef
END
CheckScriptFailure(lines, 'E1073:')
enddef
def Test_fixed_size_list()
# will be allocated as one piece of memory, check that changes work
let l = [1, 2, 3, 4]

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1350,
/**/
1349,
/**/