comparison src/userfunc.c @ 20532:cb4831fa7e25 v8.2.0820

patch 8.2.0820: Vim9: function type isn't set until compiled Commit: https://github.com/vim/vim/commit/6ff71d8b7fbdf667a2f119a2487302e240961816 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 24 23:45:24 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 May 2020 00:00:04 +0200
parents 489cb75c76b6
children 9f921ba86d05
comparison
equal deleted inserted replaced
20531:6eb8347bcf1a 20532:cb4831fa7e25
3282 fp->uf_flags |= FC_EXPORT; 3282 fp->uf_flags |= FC_EXPORT;
3283 // let ex_export() know the export worked. 3283 // let ex_export() know the export worked.
3284 is_export = FALSE; 3284 is_export = FALSE;
3285 } 3285 }
3286 3286
3287 if (eap->cmdidx == CMD_def)
3288 set_function_type(fp);
3289
3287 goto ret_free; 3290 goto ret_free;
3288 3291
3289 erret: 3292 erret:
3290 ga_clear_strings(&newargs); 3293 ga_clear_strings(&newargs);
3291 ga_clear_strings(&default_args); 3294 ga_clear_strings(&default_args);