0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.1322: Vim9: method on double quoted string doesn't work

Problem:    Vim9: method on double quoted string doesn't work.
Solution:   Recognize double quoted string. (closes #6562)
This commit is contained in:
Bram Moolenaar
2020-07-29 20:00:38 +02:00
parent 7b7f78f51d
commit 1040956292
4 changed files with 17 additions and 3 deletions

View File

@@ -1638,8 +1638,9 @@ enddef
def Test_expr7_method_call()
new
setline(1, ['first', 'last'])
eval 'second'->append(1)
assert_equal(['first', 'second', 'last'], getline(1, '$'))
'second'->append(1)
"third"->append(2)
assert_equal(['first', 'second', 'third', 'last'], getline(1, '$'))
bwipe!
let bufnr = bufnr()