summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-10-28 15:53:55 +0200
committerChristian Brabandt <cb@256bit.org>2023-10-28 15:53:55 +0200
commitfeaccd239573a6265d39d3a917862ee40742eab4 (patch)
tree3ccb80ce860395236ba3d4a44b4257af99e4b21a /src/evalvars.c
parent87ca5e86fa0ef305f3d39cc4261b622f21417f7f (diff)
patch 9.0.2078: several problems with type aliasesv9.0.2078
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>
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 5c7bc12d2f..fd3c937b51 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1838,7 +1838,7 @@ ex_let_one(
if (tv->v_type == VAR_TYPEALIAS)
{
- semsg(_(e_using_typealias_as_variable), tv->vval.v_typealias->ta_name);
+ semsg(_(e_using_typealias_as_value), tv->vval.v_typealias->ta_name);
return NULL;
}
@@ -3979,7 +3979,7 @@ set_var_const(
if (di->di_tv.v_type == VAR_TYPEALIAS)
{
- semsg(_(e_using_typealias_as_variable),
+ semsg(_(e_cannot_modify_typealias),
di->di_tv.vval.v_typealias->ta_name);
clear_tv(&di->di_tv);
goto failed;