mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.2.2566: Vim9: Function name is not recognized
Problem: Vim9: Function name is not recognized. Solution: Change lookup_scriptvar() to also find function names. (closes #7770)
This commit is contained in:
@@ -371,6 +371,24 @@ def Test_method_call_linebreak()
|
||||
MethodAfterLinebreak('foobar')
|
||||
assert_equal('foobar', getline(1))
|
||||
bwipe!
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
def Foo(): string
|
||||
return '# some text'
|
||||
enddef
|
||||
|
||||
def Bar(F: func): string
|
||||
return F()
|
||||
enddef
|
||||
|
||||
Foo
|
||||
->Bar()
|
||||
->setline(1)
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
assert_equal('# some text', getline(1))
|
||||
bwipe!
|
||||
enddef
|
||||
|
||||
def Test_method_call_whitespace()
|
||||
|
Reference in New Issue
Block a user