Mercurial > vim
diff src/vim9compile.c @ 33993:6c8fc0437865 v9.0.2181
patch 9.0.2181: Vim9: missing error messages
Commit: https://github.com/vim/vim/commit/5e133157785dd2fdcfaaecd4822f2793e28b466d
Author: Ernie Rael <errael@raelity.com>
Date: Tue Dec 19 22:15:27 2023 +0100
patch 9.0.2181: Vim9: missing error messages
Problem: Vim9: missing error messages
Solution: Add one more error message
closes: #13729
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Dec 2023 22:30:03 +0100 |
parents | 7c30841c60a0 |
children | 6d33f47b71b8 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2265,7 +2265,10 @@ compile_load_lhs_with_index(lhs_T *lhs, // Also for "obj.value". char_u *dot = vim_strchr(var_start, '.'); if (dot == NULL) + { + semsg(_(e_missing_dot_after_object_str), lhs->lhs_name); return FAIL; + } class_T *cl = lhs->lhs_type->tt_class; type_T *type = oc_member_type(cl, TRUE, dot + 1, @@ -2294,7 +2297,10 @@ compile_load_lhs_with_index(lhs_T *lhs, // "<classname>.value": load class variable "classname.value" char_u *dot = vim_strchr(var_start, '.'); if (dot == NULL) + { + check_type_is_value(lhs->lhs_type); return FAIL; + } class_T *cl = lhs->lhs_type->tt_class; ocmember_T *m = class_member_lookup(cl, dot + 1,