comparison src/testdir/test_vim9_expr.vim @ 21544:6c67c86a202a v8.2.1322

patch 8.2.1322: Vim9: method on double quoted string doesn't work Commit: https://github.com/vim/vim/commit/1040956292a9f2c3d02fc08febd5acf349c85590 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 29 20:00:38 2020 +0200 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 https://github.com/vim/vim/issues/6562)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jul 2020 20:15:03 +0200
parents 81c47a694479
children 4d3e983313dc
comparison
equal deleted inserted replaced
21543:456123afa2ec 21544:6c67c86a202a
1636 enddef 1636 enddef
1637 1637
1638 def Test_expr7_method_call() 1638 def Test_expr7_method_call()
1639 new 1639 new
1640 setline(1, ['first', 'last']) 1640 setline(1, ['first', 'last'])
1641 eval 'second'->append(1) 1641 'second'->append(1)
1642 assert_equal(['first', 'second', 'last'], getline(1, '$')) 1642 "third"->append(2)
1643 assert_equal(['first', 'second', 'third', 'last'], getline(1, '$'))
1643 bwipe! 1644 bwipe!
1644 1645
1645 let bufnr = bufnr() 1646 let bufnr = bufnr()
1646 let loclist = [#{bufnr: bufnr, lnum: 42, col: 17, text: 'wrong'}] 1647 let loclist = [#{bufnr: bufnr, lnum: 42, col: 17, text: 'wrong'}]
1647 loclist->setloclist(0) 1648 loclist->setloclist(0)