[vim/vim] vim9: try to find a variable while want a function for an 'autoloaded' file (Issue #20911)

1 view
Skip to first unread message

Mao-Yining

unread,
9:28 AM (11 hours ago) 9:28 AM
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#20911)

Steps to reproduce

b.vim:

vim9script
export def F()
enddef

a.vim:

vim9script
import autoload "./b.vim"
def F()
	var A: func = b.F
enddef
F()

DON'T PUT THESE FILES UNDER autoload/!

source a.vim, then throw E121.

Expected behaviour

No error

Version of Vim

9.2.0888

Environment

MS-Windows

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20911@github.com>

Reply all
Reply to author
Forward
0 new messages