forked from aniani/vim
patch 8.2.2256: Vim9: cannot use function( after line break in :def function
Problem: Vim9: cannot use function( after line break in :def function.
Solution: Check for "(" after "function". (closes #7581)
This commit is contained in:
@@ -260,6 +260,11 @@ def Test_nested_function()
|
||||
CheckScriptSuccess(lines)
|
||||
enddef
|
||||
|
||||
def Test_not_nested_function()
|
||||
echo printf('%d',
|
||||
function('len')('xxx'))
|
||||
enddef
|
||||
|
||||
func Test_call_default_args_from_func()
|
||||
call MyDefaultArgs()->assert_equal('string')
|
||||
call MyDefaultArgs('one')->assert_equal('one')
|
||||
|
||||
Reference in New Issue
Block a user