Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 21122:839ace6773aa v8.2.1112
patch 8.2.1112: Vim9: no line continuation allowed in method call
Commit: https://github.com/vim/vim/commit/5f195938d4d489aa288bdb54ee6112a34aed1df9
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 1 20:07:14 2020 +0200
patch 8.2.1112: Vim9: no line continuation allowed in method call
Problem: Vim9: no line continuation allowed in method call.
Solution: Handle line continuation in expression before method call.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Jul 2020 20:15:03 +0200 |
parents | 111f877e63d9 |
children | 4a1e8086759b |
comparison
equal
deleted
inserted
replaced
21121:59e2379e7479 | 21122:839ace6773aa |
---|---|
188 assert_equal(10, nr) | 188 assert_equal(10, nr) |
189 END | 189 END |
190 CheckScriptSuccess(lines) | 190 CheckScriptSuccess(lines) |
191 enddef | 191 enddef |
192 | 192 |
193 def Test_method_cal_linebreak() | |
194 let lines =<< trim END | |
195 vim9script | |
196 let res = [] | |
197 func RetArg( | |
198 arg | |
199 ) | |
200 let s:res = a:arg | |
201 endfunc | |
202 [1, | |
203 2, | |
204 3]->RetArg() | |
205 assert_equal([1, 2, 3], res) | |
206 END | |
207 CheckScriptSuccess(lines) | |
208 enddef | |
209 | |
193 | 210 |
194 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 211 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |