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

The function being invoked exists, and has the correct arity, but will not succeed.

Example

defmodule Example do
  def ok() do
    fun = fn :ok -> :ok end
    fun.(:error)
  end
end