Hi,
Using the latest Vim, when I source the following script:
---------------------------------------------------------------------------------------------
vim9script
mkdir('Xtest/autoload', 'p')
var lines =<< trim END
vim9script
import "./a.vim"
def Xtest#Test(): string
return a.F1()
enddef
END
writefile(lines, 'Xtest/autoload/Xtest.vim')
lines =<< trim END
vim9script
export def F2(): string
return "Hello"
enddef
export def F1(): string
return F2()
enddef
END
writefile(lines, 'Xtest/autoload/a.vim')
set rtp+=./Xtest
echo Xtest#Test()
delete('Xtest', 'rf')
---------------------------------------------------------------------------------------------
I get the "E117: Unknown function: F2" error message (even though the function
is present). If I remove "export" from the F2() function definition,
then the error
goes away.
- Yegappan
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7kpF1yCF-%3DH3axwgiKc%2B1pk_nrrNfHn-81f0_r_ngLFSg%40mail.gmail.com.