mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.4116: Vim9: cannot use a method with a complex expression in :def
Problem: Vim9: cannot use a method with a complex expression in a :def function. Solution: Implement compiling the expression.
This commit is contained in:
@@ -3140,7 +3140,6 @@ def Test_expr7_method_call()
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
def SetNumber(n: number)
|
||||
g:number = n
|
||||
enddef
|
||||
@@ -3166,7 +3165,7 @@ def Test_expr7_method_call()
|
||||
|
||||
unlet g:number
|
||||
END
|
||||
CheckScriptSuccess(lines) # TODO: CheckDefAndScriptSuccess()
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
|
||||
lines =<< trim END
|
||||
def RetVoid()
|
||||
|
Reference in New Issue
Block a user