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

The clause guard describes a condition of literals that fails the pattern given in the function head.

Example

defmodule Example do
  def ok(n = 0) when not n < 1 do
    :ok
  end
end