1
0
forked from aniani/vim

patch 8.2.3249: Vim9: error for re-imported function with default argument

Problem:    Vim9: error for re-imported function with default argument.
Solution:   Do not check argument type if it is still unknown. (closes #8653)
This commit is contained in:
Bram Moolenaar
2021-07-29 22:48:54 +02:00
parent 921ba52926
commit 60dc8274e9
8 changed files with 26 additions and 10 deletions

View File

@@ -1626,6 +1626,9 @@ def Test_vim9script_reload_noclear()
var lines =<< trim END
vim9script
export var exported = 'thexport'
export def TheFunc(x = 0)
enddef
END
writefile(lines, 'XExportReload')
lines =<< trim END
@@ -1638,6 +1641,9 @@ def Test_vim9script_reload_noclear()
return 'again'
enddef
import TheFunc from './XExportReload'
TheFunc()
if exists('s:loaded') | finish | endif
var s:loaded = true