summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar Michael Lowell Roberts <mirobert@microsoft.com>2015-08-31 10:54:41 -0700
committerGravatar Michael Lowell Roberts <mirobert@microsoft.com>2015-08-31 10:54:41 -0700
commit2a442cedb2d920cb45382af4add7f05270e31207 (patch)
treec1cf2bf36628936999eae6e13b9e60ddd192af86 /Binaries
parentc2a39bbc960f0d90401138b0f44879e7b63605af (diff)
fix for comparison error in prelude when using /optimize.
Diffstat (limited to 'Binaries')
-rw-r--r--Binaries/DafnyRuntime.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Binaries/DafnyRuntime.cs b/Binaries/DafnyRuntime.cs
index dfb8cf38..d1a3c092 100644
--- a/Binaries/DafnyRuntime.cs
+++ b/Binaries/DafnyRuntime.cs
@@ -72,11 +72,11 @@ namespace Dafny
}
}
public bool Equals(Set<T> other) {
- return this.setImpl.Equals(other.setImpl);
+ return this.setImpl.SetEquals(other.setImpl);
}
public override bool Equals(object other) {
var otherSet = other as Set<T>;
- return otherSet != null && Equals(otherSet);
+ return otherSet != null && this.Equals(otherSet);
}
public override int GetHashCode() {
var hashCode = 1;