Dialyxir.Warnings.CallbackTypeMismatch (Dialyxir v1.4.2) View Source

The success type of the function does not match the callback type in the behaviour.

Example

defmodule ExampleBehaviour do
  @callback ok() :: :ok
end

defmodule Example do
  @behaviour ExampleBehaviour

  def ok() do
    :error
  end
end