To: vim_dev@googlegroups.com Subject: Patch 8.2.0772 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0772 Problem: Vim9: some variable initializations not tested. Solution: Add a few more tests Files: src/testdir/test_vim9_script.vim *** ../vim-8.2.0771/src/testdir/test_vim9_script.vim 2020-05-15 23:36:36.910811316 +0200 --- src/testdir/test_vim9_script.vim 2020-05-16 22:31:09.361227932 +0200 *************** *** 1736,1741 **** --- 1736,1743 ---- return 'this' endfunc let val: string = GetValue() + " env var is always a string + let env = $TERM END writefile(lines, 'Xfinished') source Xfinished *************** *** 1752,1764 **** func GetValue() return 'this' endfunc ! let val = GetValue() END CheckScriptFailure(lines, 'E1091:') lines =<< trim END vim9script ! let var = g:unkown END CheckScriptFailure(lines, 'E1091:') --- 1754,1793 ---- func GetValue() return 'this' endfunc ! let val = GetValue() END CheckScriptFailure(lines, 'E1091:') lines =<< trim END vim9script ! func GetValue() ! return 'this' ! endfunc ! let val = [GetValue()] ! END ! CheckScriptFailure(lines, 'E1091:') ! ! lines =<< trim END ! vim9script ! func GetValue() ! return 'this' ! endfunc ! let val = {GetValue(): 123} ! END ! CheckScriptFailure(lines, 'E1091:') ! ! lines =<< trim END ! vim9script ! func GetValue() ! return 'this' ! endfunc ! let val = {'a': GetValue()} ! END ! CheckScriptFailure(lines, 'E1091:') ! ! lines =<< trim END ! vim9script ! let var = g:unknown END CheckScriptFailure(lines, 'E1091:') *** ../vim-8.2.0771/src/version.c 2020-05-16 21:20:08.241327155 +0200 --- src/version.c 2020-05-16 22:32:25.604986929 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 772, /**/ -- hundred-and-one symptoms of being an internet addict: 110. You actually volunteer to become your employer's webmaster. /// 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 ///