Skip to content

Commit

Permalink
fix: missing type characteristic for a functions that accesses the Va…
Browse files Browse the repository at this point in the history
…lues of a map
  • Loading branch information
jtristan committed Sep 19, 2023
1 parent 05beef6 commit 73a8b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collections/Maps/Maps.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module {:options "-functionSyntax:4"} Maps {

/* Swaps map keys and values. Values are not required to be unique; no
promises on which key is chosen on the intersection. */
ghost function {:opaque} Invert<X, Y>(m: map<X, Y>): map<Y, X>
ghost function {:opaque} Invert<X, Y(==)>(m: map<X, Y>): map<Y, X>
{
map y | y in m.Values :: var x :| x in m.Keys && m[x] == y; x
}
Expand Down

0 comments on commit 73a8b37

Please sign in to comment.