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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202109072035.187KZw7l1715258%40masaka.moolenaar.net.