Problem: Vim9: importing the wrong file.
Solution: Correct the file name. Delete the file afterwards.
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()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3412,
/**/
3411,
/**/