Mercurial > vim
diff src/vim9execute.c @ 25425:effe5f2b4d01 v8.2.3249
patch 8.2.3249: Vim9: error for re-imported function with default argument
Commit: https://github.com/vim/vim/commit/60dc8274e9f8c6a20d54efebc7a8752fe062eead
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 29 22:48:54 2021 +0200
patch 8.2.3249: Vim9: error for re-imported function with default argument
Problem: Vim9: error for re-imported function with default argument.
Solution: Do not check argument type if it is still unknown. (closes https://github.com/vim/vim/issues/8653)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 29 Jul 2021 23:00:04 +0200 |
parents | 0c5b84c5862a |
children | 891d08245543 |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1271,7 +1271,7 @@ get_script_svar(scriptref_T *sref, ectx_ return NULL; } sv = ((svar_T *)si->sn_var_vals.ga_data) + sref->sref_idx; - if (!equal_type(sv->sv_type, sref->sref_type)) + if (!equal_type(sv->sv_type, sref->sref_type, 0)) { emsg(_(e_script_variable_type_changed)); return NULL;