0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.2.2774: Vim9: cannot import an existing name even when using "as"

Problem:    Vim9: cannot import an existing name even when using "as".
Solution:   Do not check for an existing name when using "as". (closes #8113)
This commit is contained in:
Bram Moolenaar
2021-04-17 16:38:50 +02:00
parent 56994d2158
commit 6c7cc347af
3 changed files with 6 additions and 1 deletions

View File

@@ -1280,6 +1280,8 @@ def Test_import_as()
var import_lines =<< trim END
vim9script
var one = 'notused'
var yes = 777
import one as thatOne from './XexportAs'
assert_equal(1, thatOne)
import yes as yesYes from './XexportAs'