diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-01 20:07:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-01 20:07:14 +0200 |
commit | 5f195938d4d489aa288bdb54ee6112a34aed1df9 (patch) | |
tree | bb8de6af7845c30c1836362f571e55378add4337 /src/testdir/test_vim9_cmd.vim | |
parent | 9a78e6df17033223ebdf499f2b02b2538601c52d (diff) |
patch 8.2.1112: Vim9: no line continuation allowed in method callv8.2.1112
Problem: Vim9: no line continuation allowed in method call.
Solution: Handle line continuation in expression before method call.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 6fedf1fe9c..ab91a16460 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -190,5 +190,22 @@ def Test_for_linebreak() CheckScriptSuccess(lines) enddef +def Test_method_cal_linebreak() + let lines =<< trim END + vim9script + let res = [] + func RetArg( + arg + ) + let s:res = a:arg + endfunc + [1, + 2, + 3]->RetArg() + assert_equal([1, 2, 3], res) + END + CheckScriptSuccess(lines) +enddef + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |