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

Type of argument does not match the callback's expected type.

Example

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

defmodule Example do

  @behaviour ExampleBehaviour

  def ok(:error) do
    :ok
  end

end