0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.1351: Vim9: no proper error if using namespace for nested function

Problem:    Vim9: no proper error if using namespace for nested function.
Solution:   Specifically check for a namespace. (closes #6582)
This commit is contained in:
Bram Moolenaar
2020-08-01 22:35:13 +02:00
parent b9a2cac3ef
commit bcbf41395f
3 changed files with 11 additions and 1 deletions

View File

@@ -131,6 +131,8 @@ def Test_nested_function()
CheckDefFailure(['def Nested(arg: string)', 'enddef', 'Nested()'], 'E119:')
CheckDefFailure(['func Nested()', 'endfunc'], 'E1086:')
CheckDefFailure(['def s:Nested()', 'enddef'], 'E1075:')
CheckDefFailure(['def b:Nested()', 'enddef'], 'E1075:')
enddef
func Test_call_default_args_from_func()