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.
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index 221b38d..b96411f 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -1651,6 +1651,19 @@
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]
diff --git a/src/version.c b/src/version.c
index c98d2ab..00d8c2d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1350,
+/**/
1349,
/**/
1348,