From 189bfeb9f530375f599387cac5bb9109c99dc813 Mon Sep 17 00:00:00 2001 From: Dmitry Panov Date: Tue, 5 Jul 2022 11:14:29 +0100 Subject: [PATCH] Fixed objectGoReflect equality. See #403 --- object_goreflect.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/object_goreflect.go b/object_goreflect.go index 55440fc6..6b29695f 100644 --- a/object_goreflect.go +++ b/object_goreflect.go @@ -485,7 +485,13 @@ func (o *objectGoReflect) exportType() reflect.Type { func (o *objectGoReflect) equal(other objectImpl) bool { if other, ok := other.(*objectGoReflect); ok { - return o.value == other.value + k1, k2 := o.value.Kind(), other.value.Kind() + if k1 == k2 { + if isContainer(k1) { + return o.value == other.value + } + return o.value.Interface() == other.value.Interface() + } } return false }