You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think what happens, is that test_override('defcompile', 1) causes your function to be compiled immediately when it is defined. So in your case the definition of F2() isn't seen yet, so it errors out. That's why you put the :defcompile at the end :)
Steps to reproduce
Source the given script and get.
But if the
test_override
statement is commented out, then thedefcompile
at the end gets no error. This is more in line with expected usage/behavior.Expected behaviour
If, when
test_override('defcompile', 1)
, defcompile is done at the end of the file this would be more in line with how things actually work.@yegappan I took a look at code, but I couldn't even figure out where end of file happens.
Version of Vim
9.1.474
Environment
linux/gtk3
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: