Dialyxir.Warnings.ExtraRange (Dialyxir v1.4.4) View Source
The @spec says the function returns more types than the function actually returns.
Example
defmodule Example do
@spec ok() :: :ok | :error
def ok() do
:ok
end
end
The @spec says the function returns more types than the function actually returns.
defmodule Example do
@spec ok() :: :ok | :error
def ok() do
:ok
end
end