commit | 6ff71d8b7fbdf667a2f119a2487302e240961816 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun May 24 23:45:24 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun May 24 23:45:24 2020 +0200 |
tree | 90e14c4469b447139f22501d5ff942441c90ece8 | |
parent | f40e51a880a95f94dbbbecc9476559506c2cc345 [diff] [blame] |
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.
diff --git a/src/userfunc.c b/src/userfunc.c index f29a7b5..bc92c2a 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -3284,6 +3284,9 @@ is_export = FALSE; } + if (eap->cmdidx == CMD_def) + set_function_type(fp); + goto ret_free; erret: