diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index 3acae98ea9..85fd8ff4e0 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -159,6 +159,19 @@ def Test_nested_global_function() delfunc g:Inner END CheckScriptSuccess(lines) + + lines =<< trim END + vim9script + def Outer() + def g:Inner(): string + return 'inner' + enddef + enddef + defcompile + Outer() + Outer() + END + CheckScriptFailure(lines, "E122:") enddef def Test_global_local_function() diff --git a/src/version.c b/src/version.c index 33274ac62f..c6b6e8fd02 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1344, /**/ 1343, /**/