diff options
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r-- | src/vim9expr.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c index c001d9e3dd..feb5df07ca 100644 --- 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; |