patch 9.0.1134: comparing objects uses identity instead of equality
Problem: Comparing objects uses identity instead of equality.
Solution: Compare the object values.
diff --git a/src/vim9expr.c b/src/vim9expr.c
index dd938ec..c5897fa 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -273,7 +273,8 @@
class_T *cl = (class_T *)type->tt_member;
if (*name_end == '(')
{
- // TODO
+ // TODO: method or function call
+ emsg("compile_class_object_index(): object/class call not handled yet");
}
else if (type->tt_type == VAR_OBJECT)
{
@@ -300,7 +301,7 @@
else
{
// TODO: class member
- emsg("compile_class_object_index(): not handled");
+ emsg("compile_class_object_index(): class member not handled yet");
}
return FAIL;