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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user