summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2023-12-11 17:40:46 +0100
committerChristian Brabandt <cb@256bit.org>2023-12-11 17:40:46 +0100
commit9ed53752df1020a6881ac68d1bde2852c9a680aa (patch)
treea99975a155438cacfc942a073910e1e038ed8f5a /src/evalvars.c
parentfa920da283f6651083b40d0aa28a9eacd5116593 (diff)
patch 9.0.2156: Vim9: can use typealias in assignmentv9.0.2156
Problem: Vim9: can use typealias in an assignment Solution: Generate errors when class/typealias involved in the rhs of an assignment closes: #13637 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Generate errors when class/typealias involved in assignment.
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index fd3c937b51..343f6367dc 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1836,11 +1836,8 @@ ex_let_one(
return NULL;
}
- if (tv->v_type == VAR_TYPEALIAS)
- {
- semsg(_(e_using_typealias_as_value), tv->vval.v_typealias->ta_name);
+ if (check_typval_is_value(tv) == FAIL)
return NULL;
- }
if (*arg == '$')
{