Dialyxir v1.0.0 Dialyxir.Warnings.CallbackTypeMismatch 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