To: vim_dev@googlegroups.com Subject: Patch 8.2.1350 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1350 Problem: Vim9: no test for error message when redefining function. Solution: Add a test. Files: src/testdir/test_vim9_script.vim *** ../vim-8.2.1349/src/testdir/test_vim9_script.vim 2020-08-01 22:16:39.724599474 +0200 --- src/testdir/test_vim9_script.vim 2020-08-01 22:21:06.064052315 +0200 *************** *** 1651,1656 **** --- 1651,1669 ---- delete('XexportedFunc.vim') enddef + def Test_func_redefine_fails() + let lines =<< trim END + vim9script + def Func() + echo 'one' + enddef + def Func() + echo 'two' + enddef + END + CheckScriptFailure(lines, 'E1073:') + enddef + def Test_fixed_size_list() # will be allocated as one piece of memory, check that changes work let l = [1, 2, 3, 4] *** ../vim-8.2.1349/src/version.c 2020-08-01 22:16:39.724599474 +0200 --- src/version.c 2020-08-01 22:21:56.143937930 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1350, /**/ -- hundred-and-one symptoms of being an internet addict: 104. When people ask about the Presidential Election you ask "Which country?" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///