Dialyxir.Warnings.PatternMatch (Dialyxir v1.4.5) View Source

The pattern matching is never given a value that satisfies all of its clauses.

Example

defmodule Example do
  def ok() do
    unmatched(:ok)
  end

  defp unmatched(:ok), do: :ok

  defp unmatched(:error), do: :error
end