Thank you for your replay,
I implement protocol for Any and add @fallback_to_any true to protocol, but dialyzer continuous to return this warnings.
defprotocol Paycode do
@dialyzer {:nowarn_function, __protocol__: 1}
@spec to_string(any) :: String.t | :error
@fallback_to_any true
def to_string(value)
end
defimpl Paycode, for: Any do
def to_string(_value), do: :error
end
Did I do something wrong?






















