Skip to content

Commit a8d9921

Browse files
authored
Add admonition block about MapSet opaqueness issue (#15674)
1 parent 82e17e8 commit a8d9921

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/elixir/lib/map_set.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ defmodule MapSet do
5151
that they share many properties, including logarithmic time complexity. Erlang
5252
`:sets` (version 2) are implemented on top of maps, so see the documentation
5353
for `Map` for more information on its execution time complexity.
54+
55+
> #### Dialyzer opaqueness warnings {: .warning}
56+
>
57+
> `MapSet` internally relies on the `:sets` module which uses
58+
> opaque types. This might cause Dialyzer to report opaqueness violations.
59+
> These can be silenced by setting the following module attribute:
60+
>
61+
> @dialyzer :no_opaque
62+
5463
"""
5564

5665
@type value :: term

0 commit comments

Comments
 (0)