Mercurial > vim
diff src/vim9expr.c @ 33682:f126ffc85f7c v9.0.2078
patch 9.0.2078: several problems with type aliases
Commit: https://github.com/vim/vim/commit/feaccd239573a6265d39d3a917862ee40742eab4
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Oct 28 15:53:55 2023 +0200
patch 9.0.2078: several problems with type aliases
Problem: several problems with type aliases
Solution: Check for more error conditions, add tests,
fix issues
Check for more error conditions and add additional tests
fixes #13434
fixes #13437
fixes #13438
closes #13441
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Oct 2023 16:00:06 +0200 |
parents | 7d9d2404a3d4 |
children | 2172872dfbcd |
line wrap: on
line diff
--- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -530,13 +530,6 @@ compile_load_scriptvar( { svar_T *sv = ((svar_T *)si->sn_var_vals.ga_data) + idx; - if (sv->sv_tv->v_type == VAR_TYPEALIAS) - { - semsg(_(e_using_typealias_as_variable), - sv->sv_tv->vval.v_typealias->ta_name); - return FAIL; - } - generate_VIM9SCRIPT(cctx, ISN_LOADSCRIPT, current_sctx.sc_sid, idx, sv->sv_type); return OK;