0
0
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:
Bram Moolenaar
2022-01-16 20:59:39 +00:00
parent c665dabdf4
commit c73499351a
3 changed files with 72 additions and 31 deletions

View File

@@ -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()