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 49759c9 commit bb0ec0cCopy full SHA for bb0ec0c
StandardLibrary/runtimes/go/ImplementationFromDafny-go/DafnyLibraries/externs.go
@@ -49,6 +49,15 @@ func (_this *MutableMap) Equals(other *MutableMap) bool {
49
return _this == other
50
}
51
52
+// If you use the returned value, and ALSO continue to modify the MutableMap
53
+// Then things might get weird.
54
+func (_this *MutableMap) Content() _dafny.Map {
55
+ if (_this.bytesKeys == true) {
56
+ panic("To maintain compatibility with other runtimes, this method does not work when bytesKeys is true.");
57
+ }
58
+ return _this.dafnyInternal
59
+}
60
+
61
func (_this *MutableMap) EqualsGeneric(x interface{}) bool {
62
other, ok := x.(*MutableMap)
63
return ok && _this.Equals(other)
0 commit comments