Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
25424:3cf272d6ee04 | 25425:effe5f2b4d01 |
---|---|
1269 semsg(_(e_script_variable_invalid_after_reload_in_function_str), | 1269 semsg(_(e_script_variable_invalid_after_reload_in_function_str), |
1270 dfunc->df_ufunc->uf_name_exp); | 1270 dfunc->df_ufunc->uf_name_exp); |
1271 return NULL; | 1271 return NULL; |
1272 } | 1272 } |
1273 sv = ((svar_T *)si->sn_var_vals.ga_data) + sref->sref_idx; | 1273 sv = ((svar_T *)si->sn_var_vals.ga_data) + sref->sref_idx; |
1274 if (!equal_type(sv->sv_type, sref->sref_type)) | 1274 if (!equal_type(sv->sv_type, sref->sref_type, 0)) |
1275 { | 1275 { |
1276 emsg(_(e_script_variable_type_changed)); | 1276 emsg(_(e_script_variable_type_changed)); |
1277 return NULL; | 1277 return NULL; |
1278 } | 1278 } |
1279 return sv; | 1279 return sv; |