Dialyxir.Warnings.ExactCompare (Dialyxir v1.4.8)

Copy Markdown View Source

The test can never evaluate to the expected value.

This is a comparison where the result is determined at compile time: either the compared terms can never be equal (for == / =:=), or they can never be different (for /= / =/=).

Example

defmodule Example do
  def ok() do
    :ok == :error
  end
end