Patch 8.2.3412

5 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 7, 2021, 4:36:05 PM9/7/21
to vim...@googlegroups.com

Patch 8.2.3412 (after 8.2.3411)
Problem: Vim9: importing the wrong file.
Solution: Correct the file name. Delete the file afterwards.
Files: src/testdir/test_vim9_script.vim


*** ../vim-8.2.3411/src/testdir/test_vim9_script.vim 2021-09-07 22:12:15.489452165 +0200
--- src/testdir/test_vim9_script.vim 2021-09-07 22:32:58.850438015 +0200
***************
*** 1480,1495 ****
def Test_import_star_fails()
writefile([], 'Xfoo.vim')
var lines =<< trim END
! import * as foo from '/tmp/foo.vim'
foo = 'bar'
END
CheckDefAndScriptFailure2(lines, 'E1094:', 'E1236: Cannot use foo itself')
lines =<< trim END
vim9script
! import * as foo from '/tmp/foo.vim'
var that = foo
END
CheckScriptFailure(lines, 'E1029: Expected ''.''')
enddef

def Test_import_as()
--- 1480,1496 ----
def Test_import_star_fails()
writefile([], 'Xfoo.vim')
var lines =<< trim END
! import * as foo from './Xfoo.vim'
foo = 'bar'
END
CheckDefAndScriptFailure2(lines, 'E1094:', 'E1236: Cannot use foo itself')
lines =<< trim END
vim9script
! import * as foo from './Xfoo.vim'
var that = foo
END
CheckScriptFailure(lines, 'E1029: Expected ''.''')
+ delete('Xfoo.vim')
enddef

def Test_import_as()
*** ../vim-8.2.3411/src/version.c 2021-09-07 22:12:15.489452165 +0200
--- src/version.c 2021-09-07 22:35:02.426078459 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3412,
/**/

--
hundred-and-one symptoms of being an internet addict:
1. You actually wore a blue ribbon to protest the Communications Decency Act.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages