forked from aniani/vim
patch 9.1.0387: Vim9: null value tests not sufficient
Problem: Vim9: null value tests not sufficient Solution: Add a more comprehensive test for null values (Yegappan Lakshmanan) closes: #14701 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3ca2ae180a
commit
da9d345b3d
@@ -2093,7 +2093,7 @@ check_typval_is_value(typval_T *tv)
|
||||
class_T *cl = tv->vval.v_class;
|
||||
char_u *class_name = (cl == NULL) ? (char_u *)""
|
||||
: cl->class_name;
|
||||
if (cl && IS_ENUM(cl))
|
||||
if (cl != NULL && IS_ENUM(cl))
|
||||
semsg(_(e_using_enum_as_value_str), class_name);
|
||||
else
|
||||
semsg(_(e_using_class_as_value_str), class_name);
|
||||
|
Reference in New Issue
Block a user