patch 8.2.4057: Vim9: not fully implementing the autoload mechanism
Problem: Vim9: not fully implementing the autoload mechanism.
Solution: Allow for exporting a legacy function. Improve test coverage.
diff --git a/src/vim9script.c b/src/vim9script.c
index e5ed604..d3e1922 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -260,11 +260,11 @@
(void)find_ex_command(eap, NULL, lookup_scriptitem, NULL);
switch (eap->cmdidx)
{
- case CMD_let:
case CMD_var:
case CMD_final:
case CMD_const:
case CMD_def:
+ case CMD_function:
// case CMD_class:
is_export = TRUE;
do_cmdline(eap->cmd, eap->getline, eap->cookie,