]> granicus.if.org Git - vim/commitdiff
patch 8.2.3412: Vim9: importing the wrong file v8.2.3412
authorBram Moolenaar <Bram@vim.org>
Tue, 7 Sep 2021 20:35:34 +0000 (22:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 7 Sep 2021 20:35:34 +0000 (22:35 +0200)
Problem:    Vim9: importing the wrong file.
Solution:   Correct the file name.  Delete the file afterwards.

src/testdir/test_vim9_script.vim
src/version.c

index 8341ef192baaa33c89f19169b5dc568e90026c6a..2600bbdb4ceb59e40298e3e625c352f2a0cc8b44 100644 (file)
@@ -1480,16 +1480,17 @@ enddef
 def Test_import_star_fails()
   writefile([], 'Xfoo.vim')
   var lines =<< trim END
-      import * as foo from '/tmp/foo.vim'
+      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 '/tmp/foo.vim'
+      import * as foo from './Xfoo.vim'
       var that = foo
   END
   CheckScriptFailure(lines, 'E1029: Expected ''.''')
+  delete('Xfoo.vim')
 enddef
 
 def Test_import_as()
index e5facbaa5201092fa30009e616d0ff15ba36afe1..81845b7d2abe0dba6e41fae7310ba86898db5653 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3412,
 /**/
     3411,
 /**/