From 9ed53752df1020a6881ac68d1bde2852c9a680aa Mon Sep 17 00:00:00 2001 From: Ernie Rael Date: Mon, 11 Dec 2023 17:40:46 +0100 Subject: patch 9.0.2156: Vim9: can use typealias in assignment 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 Signed-off-by: Christian Brabandt Generate errors when class/typealias involved in assignment. --- src/evalvars.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/evalvars.c') 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 == '$') { -- cgit v1.2.3