diff options
author | Ernie Rael <errael@raelity.com> | 2023-12-21 17:18:54 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-12-21 17:18:54 +0100 |
commit | e75fde6b043371a188660c3423e48b1b7fd7e14b (patch) | |
tree | 39a7e955cf230c56215182d1cc59c355b61c3d4f /src/evalvars.c | |
parent | 18ab6c3392ef83abf078042e233d085fe80b6c06 (diff) |
patch 9.0.2184: Vim9: inconsistent :type/:class messagesv9.0.2184
Problem: Vim9: inconsistent :type/:class messages
Solution: Update the Messages (Ernie Rael)
closes: #13706
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index 64455f0f4f..ea039cbed1 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -3974,12 +3974,8 @@ set_var_const( goto failed; } - if (di->di_tv.v_type == VAR_TYPEALIAS) - { - semsg(_(e_cannot_modify_typealias), - di->di_tv.vval.v_typealias->ta_name); + if (check_typval_is_value(&di->di_tv) == FAIL) goto failed; - } if (var_in_vim9script && (flags & ASSIGN_FOR_LOOP) == 0) { |