comparison src/testdir/test_let.vim @ 18536:c0cd979000f9 v8.1.2262

patch 8.1.2262: unpack assignment in function not recognized Commit: https://github.com/vim/vim/commit/1e673b9eb686459bd0e7fc3f2199dd077546a18e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 6 15:02:50 2019 +0100 patch 8.1.2262: unpack assignment in function not recognized Problem: Unpack assignment in function not recognized. Solution: Skip over "[a, b]". (closes https://github.com/vim/vim/issues/5051)
author Bram Moolenaar <Bram@vim.org>
date Wed, 06 Nov 2019 15:15:03 +0100
parents 9ea364ccf216
children f7bb0e413fe1
comparison
equal deleted inserted replaced
18535:669d5689143b 18536:c0cd979000f9
301 let check =<< trim END 301 let check =<< trim END
302 from heredoc 302 from heredoc
303 END 303 END
304 endif 304 endif
305 call assert_equal([], check) 305 call assert_equal([], check)
306 endfunc 306
307 " unpack assignment
308 let [a, b, c] =<< END
309 x
310 \y
311 z
312 END
313 call assert_equal([' x', ' \y', ' z'], [a, b, c])
314 endfunc