0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0820: Vim9: function type isn't set until compiled

Problem:    Vim9: function type isn't set until compiled.
Solution:   Set function type early.
This commit is contained in:
Bram Moolenaar
2020-05-24 23:45:24 +02:00
parent f40e51a880
commit 6ff71d8b7f
5 changed files with 58 additions and 56 deletions

View File

@@ -3284,6 +3284,9 @@ def_function(exarg_T *eap, char_u *name_arg)
is_export = FALSE;
}
if (eap->cmdidx == CMD_def)
set_function_type(fp);
goto ret_free;
erret: