0
0
mirror of https://github.com/vim/vim.git synced 2025-10-09 06:14:17 -04:00

patch 8.2.1218: Vim9: cannot use 'text'->func()

Problem:    Vim9: cannot use 'text'->func().
Solution:   Recognize string at start of command.
This commit is contained in:
Bram Moolenaar
2020-07-15 14:15:52 +02:00
parent 1e1f612bd4
commit 3d48e25dcb
4 changed files with 57 additions and 25 deletions

View File

@@ -355,6 +355,15 @@ def Test_vim9script_call()
("some")->MyFunc()
assert_equal('some', var)
'asdfasdf'->MyFunc()
assert_equal('asdfasdf', var)
def UseString()
'xyork'->MyFunc()
enddef
UseString()
assert_equal('xyork', var)
MyFunc(
'continued'
)