mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3412: Vim9: importing the wrong file
Problem: Vim9: importing the wrong file. Solution: Correct the file name. Delete the file afterwards.
This commit is contained in:
parent
6853c38b78
commit
af2d5d2ce2
@ -1480,16 +1480,17 @@ enddef
|
|||||||
def Test_import_star_fails()
|
def Test_import_star_fails()
|
||||||
writefile([], 'Xfoo.vim')
|
writefile([], 'Xfoo.vim')
|
||||||
var lines =<< trim END
|
var lines =<< trim END
|
||||||
import * as foo from '/tmp/foo.vim'
|
import * as foo from './Xfoo.vim'
|
||||||
foo = 'bar'
|
foo = 'bar'
|
||||||
END
|
END
|
||||||
CheckDefAndScriptFailure2(lines, 'E1094:', 'E1236: Cannot use foo itself')
|
CheckDefAndScriptFailure2(lines, 'E1094:', 'E1236: Cannot use foo itself')
|
||||||
lines =<< trim END
|
lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
import * as foo from '/tmp/foo.vim'
|
import * as foo from './Xfoo.vim'
|
||||||
var that = foo
|
var that = foo
|
||||||
END
|
END
|
||||||
CheckScriptFailure(lines, 'E1029: Expected ''.''')
|
CheckScriptFailure(lines, 'E1029: Expected ''.''')
|
||||||
|
delete('Xfoo.vim')
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_import_as()
|
def Test_import_as()
|
||||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3412,
|
||||||
/**/
|
/**/
|
||||||
3411,
|
3411,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user