diff 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
line wrap: on
line diff
--- a/src/testdir/test_let.vim
+++ b/src/testdir/test_let.vim
@@ -303,4 +303,12 @@ E
      END
   endif
   call assert_equal([], check)
+
+  " unpack assignment
+  let [a, b, c] =<< END
+     x
+     \y
+     z
+END
+  call assert_equal(['     x', '     \y', '     z'], [a, b, c])
 endfunc