We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd50e3 commit d544ae8Copy full SHA for d544ae8
ValueSystem/CollectionValue.cs
@@ -50,7 +50,15 @@ public Type Type
50
}
51
} = null!;
52
53
- public override bool EqualCondition(Value other) => other is CollectionValue otherP && CastedValues.SequenceEqual(otherP.CastedValues) && Type == otherP.Type;
+ public override bool EqualCondition(Value other)
54
+ {
55
+ if (other is not CollectionValue otherP || otherP.CastedValues.Length != CastedValues.Length) return false;
56
+ for (int i = 0; i < CastedValues.Length; i++)
57
58
+ if (!CastedValues[i].EqualCondition(otherP.CastedValues[i])) return false;
59
+ }
60
+ return true;
61
62
63
public TryGet<Value> GetAt(int index)
64
{
0 commit comments